mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 02:44:56 +00:00
HDB: Fix Shadowed Variable Compiler Warning
This commit is contained in:
parent
19a2195ba2
commit
f702537820
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user