diff options
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 4 | ||||
-rw-r--r-- | engines/hdb/ai.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index 414e7c48c2..e2955959da 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -88,7 +88,7 @@ AIEntity *AI::spawn(AIType type, AIDir dir, int x, int y, const char *funcInit, return e; } -bool AI::cacheEntGfx(AIEntity *e, bool init) { +bool AI::cacheEntGfx(AIEntity *e, bool initFlag) { int i = 0; while (true) { if (aiEntList[i].type == END_AI_TYPES) @@ -425,7 +425,7 @@ bool AI::cacheEntGfx(AIEntity *e, bool init) { e->aiInit = aiEntList[i].initFunc; e->aiInit2 = aiEntList[i].initFunc2; - if (init) { + if (initFlag) { e->aiInit(e); if (e->aiInit2) e->aiInit2(e); diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index a456cde782..47d810bf03 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -845,7 +845,7 @@ public: // Entity Functions AIEntity *spawn(AIType type, AIDir dir, int x, int y, const char *funcInit, const char *funcAction, const char *funcUse, AIDir dir2, int level, int value1, int value2, int callInit); - bool cacheEntGfx(AIEntity *e, bool init); + bool cacheEntGfx(AIEntity *e, bool initFlag); void stopEntity(AIEntity *e); AIEntity *locateEntity(const char *luaName); AIEntity *findEntity(int x, int y); |