diff options
author | Nipun Garg | 2019-06-20 05:24:08 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:51 +0200 |
commit | 266bcfb97add23f46be7e2a125190f9e3598f7bc (patch) | |
tree | 4d6595fe62280df35768d7020e13acd431c9325a /engines/hdb | |
parent | deaa694591b0cb63c646f89bad8cbdb6f389c8ca (diff) | |
download | scummvm-rg350-266bcfb97add23f46be7e2a125190f9e3598f7bc.tar.gz scummvm-rg350-266bcfb97add23f46be7e2a125190f9e3598f7bc.tar.bz2 scummvm-rg350-266bcfb97add23f46be7e2a125190f9e3598f7bc.zip |
HDB: Remove Cache Gfx stub from spawn
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index fd3e0ba532..453d7cc428 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -68,9 +68,15 @@ AIEntity *AI::spawn(AIType type, AIDir dir, int x, int y, char *funcInit, char * if (e->luaFuncUse[0] == '*') e->luaFuncUse[0] = 0; - _ents->push_back(e); + e->standdownFrames = e->standupFrames = e->standleftFrames = e->standrightFrames = 0; + e->movedownFrames = e->moveupFrames = e->moveleftFrames = e->moverightFrames = 0; + e->blinkFrames = 0; - warning("STUB: AI::spawn: CacheEntGfx required"); + if (!cacheEntGfx(e, (bool)callInit)) { + return NULL; + } else { + _ents->push_back(e); + } return e; } |