Skip to content

Commit

Permalink
DM: Add F0145_DUNGEON_GetGroupCells
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendegúz Nagy committed Aug 26, 2016
1 parent 5bb19fd commit 4f394fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engines/dm/group.cpp
Expand Up @@ -27,6 +27,7 @@

#include "group.h"
#include "dungeonman.h"
#include "champion.h"



Expand All @@ -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;
}
}
1 change: 1 addition & 0 deletions engines/dm/group.h
Expand Up @@ -85,6 +85,7 @@ class GroupMan {
GroupMan(DMEngine *vm);
~GroupMan();
void initActiveGroups(); // @ F0196_GROUP_InitializeActiveGroups
uint16 getGroupCells(Group *group, int16 mapIndex); // @ F0145_DUNGEON_GetGroupCells
};


Expand Down

0 comments on commit 4f394fc

Please sign in to comment.