diff options
author | Eugene Sandulenko | 2019-06-26 10:58:33 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:00 +0200 |
commit | 11166ea5d3f623cf8d783061718e8f4ef29ccea5 (patch) | |
tree | 6628c4a4f7444ee860e9050a4ff0f923344eee9a /engines/hdb | |
parent | 8dbbb9b85c8845c4fbdd8412dbe872a159becf04 (diff) | |
download | scummvm-rg350-11166ea5d3f623cf8d783061718e8f4ef29ccea5.tar.gz scummvm-rg350-11166ea5d3f623cf8d783061718e8f4ef29ccea5.tar.bz2 scummvm-rg350-11166ea5d3f623cf8d783061718e8f4ef29ccea5.zip |
HDB: Added missing code to AI::stopEntity()
Now the level intro plays to the end. Yay!
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index 093fbd53f6..771279ad76 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -458,6 +458,7 @@ void AI::stopEntity(AIEntity *e) { e->goalX = e->tileX; e->goalY = e->tileY; e->drawXOff = e->drawYOff = 0; + e->goalX = e->goalY = e->xVel = e->yVel = 0; // Don't change the state of Diverters or Floating entities switch (e->state) { |