diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dm/group.cpp | 8 | ||||
-rw-r--r-- | engines/dm/group.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/engines/dm/group.cpp b/engines/dm/group.cpp index 645d81fa62..10edf011a3 100644 --- a/engines/dm/group.cpp +++ b/engines/dm/group.cpp @@ -27,6 +27,7 @@ #include "group.h" #include "dungeonman.h" +#include "champion.h" @@ -51,4 +52,11 @@ void GroupMan::initActiveGroups() { _activeGroups[i]._groupThingIndex = -1; } +uint16 GroupMan::getGroupCells(Group* group, int16 mapIndex) { + byte cells; + cells = group->_cells; + if (mapIndex == _vm->_dungeonMan->_currMap._currPartyMapIndex) + cells = _activeGroups[cells]._cells; + return cells; +} } diff --git a/engines/dm/group.h b/engines/dm/group.h index 9e1300ccde..3cd286a132 100644 --- a/engines/dm/group.h +++ b/engines/dm/group.h @@ -85,6 +85,7 @@ public: GroupMan(DMEngine *vm); ~GroupMan(); void initActiveGroups(); // @ F0196_GROUP_InitializeActiveGroups + uint16 getGroupCells(Group *group, int16 mapIndex); // @ F0145_DUNGEON_GetGroupCells }; |