mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
DM: Add F0145_DUNGEON_GetGroupCells
This commit is contained in:
parent
5bb19fd261
commit
4f394fc301
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -85,6 +85,7 @@ public:
|
||||
GroupMan(DMEngine *vm);
|
||||
~GroupMan();
|
||||
void initActiveGroups(); // @ F0196_GROUP_InitializeActiveGroups
|
||||
uint16 getGroupCells(Group *group, int16 mapIndex); // @ F0145_DUNGEON_GetGroupCells
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user