HDB: Add checkForTouchplate()
This commit is contained in:
parent
1cd0a8d936
commit
ffe05e989b
2 changed files with 8 additions and 0 deletions
|
@ -661,6 +661,13 @@ void AI::setLuaAnimFrame(const char *initName, AIState st, int frame) {
|
|||
}
|
||||
}
|
||||
|
||||
int AI::checkForTouchplate(int x, int y) {
|
||||
int tileIndex = g_hdb->_map->getMapBGTileIndex(x, y);
|
||||
if (tileIndex == _touchplateOff || tileIndex == _templeTouchpOff)
|
||||
return tileIndex;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void AI::removeEntity(AIEntity *e) {
|
||||
_ents->erase(&e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue