aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dm/group.cpp')
-rw-r--r--engines/dm/group.cpp8
1 files changed, 8 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;
+}
}