diff options
author | Nipun Garg | 2019-06-28 02:38:19 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:03 +0200 |
commit | 55c78f1f53a3e5517dfa80c4aadd95e05e7ba751 (patch) | |
tree | 0fbbf1b90aad417784d3fa27012f0b14d8938f23 | |
parent | 3c44d05daaf22886c932aa053f915316e7d6f9dd (diff) | |
download | scummvm-rg350-55c78f1f53a3e5517dfa80c4aadd95e05e7ba751.tar.gz scummvm-rg350-55c78f1f53a3e5517dfa80c4aadd95e05e7ba751.tar.bz2 scummvm-rg350-55c78f1f53a3e5517dfa80c4aadd95e05e7ba751.zip |
HDB: Fix formatting
-rw-r--r-- | engines/hdb/ai-lists.cpp | 16 | ||||
-rw-r--r-- | engines/hdb/map-loader.cpp | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/engines/hdb/ai-lists.cpp b/engines/hdb/ai-lists.cpp index ab445fd583..d76fa9ec51 100644 --- a/engines/hdb/ai-lists.cpp +++ b/engines/hdb/ai-lists.cpp @@ -441,11 +441,11 @@ bool AI::autoActive(int x, int y) { } CallbackDef allCallbacks[] = { - {NO_FUNCTION, NULL}, - {AI_BARREL_EXPLOSION_END, aiBarrelExplosionEnd}, - {CALLBACK_DOOR_OPEN_CLOSE, callbackDoorOpenClose}, - {CALLBACK_AUTODOOR_OPEN_CLOSE, callbackAutoDoorOpenClose}, - {CALLBACK_END, NULL} + {NO_FUNCTION, NULL}, + {AI_BARREL_EXPLOSION_END, aiBarrelExplosionEnd}, + {CALLBACK_DOOR_OPEN_CLOSE, callbackDoorOpenClose}, + {CALLBACK_AUTODOOR_OPEN_CLOSE, callbackAutoDoorOpenClose}, + {CALLBACK_END, NULL} }; void AI::addCallback(CallbackType type, int x, int y, int delay) { @@ -499,7 +499,7 @@ void AI::addToLuaList(int x, int y, int value1, int value2, char *luaFuncInit, c } bool AI::checkLuaList(AIEntity *e, int x, int y) { - for (int i = 0;i < _numLuaList; i++) { + for (int i = 0; i < _numLuaList; i++) { if (_luaList[i].x == x && _luaList[i].y == y && _luaList[i].luaFuncUse[0]) { if (e == _player) { lookAtXY(x, y); @@ -516,7 +516,7 @@ bool AI::checkLuaList(AIEntity *e, int x, int y) { } bool AI::luaExistAtXY(int x, int y) { - for (int i = 0;i < _numLuaList; i++) { + for (int i = 0; i < _numLuaList; i++) { if (_luaList[i].x == x && _luaList[i].y == y && _luaList[i].luaFuncUse[0]) { return true; } @@ -560,7 +560,7 @@ void AI::addToTeleportList(int teleIndex, int x, int y, int dir, int level, int } bool AI::findTeleporterDest(int tileX, int tileY, SingleTele *info) { - for (int i = 0;i < _numTeleporters; i++) { + for (int i = 0; i < _numTeleporters; i++) { if ((_teleporters[i].x1 == tileX) && (_teleporters[i].x1 == tileY)) { info->anim = _teleporters[i].anim2; info->x = _teleporters[i].x2; diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp index 49a7c8910a..c861936b2c 100644 --- a/engines/hdb/map-loader.cpp +++ b/engines/hdb/map-loader.cpp @@ -808,7 +808,7 @@ void Map::removeBGTileAnimation(int x, int y) { uint32 flags = tile->_flags; if (flags & kFlagAnimFast) { - for(Common::Array<uint32>::iterator it = _listBGAnimFast.begin(); it!=_listBGAnimFast.end(); it++) + for (Common::Array<uint32>::iterator it = _listBGAnimFast.begin(); it!=_listBGAnimFast.end(); it++) if ((uint)i == (*it)) { _listBGAnimFast.erase(it); break; @@ -837,7 +837,7 @@ void Map::removeFGTileAnimation(int x, int y) { uint32 flags = tile->_flags; if (flags & kFlagAnimFast) { - for(Common::Array<uint32>::iterator it = _listFGAnimFast.begin(); it!=_listFGAnimFast.end(); it++) + for (Common::Array<uint32>::iterator it = _listFGAnimFast.begin(); it!=_listFGAnimFast.end(); it++) if ((uint)i == (*it)) { _listFGAnimFast.erase(it); break; |