aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-funcs.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-06-26 10:46:49 +0200
committerEugene Sandulenko2019-09-03 17:17:00 +0200
commit8dbbb9b85c8845c4fbdd8412dbe872a159becf04 (patch)
treee293180f9e0bc99bcadcd118c0c2f1117e64b1c9 /engines/hdb/ai-funcs.cpp
parentaa793bdcfdb95400cc159cac3afe30f0c332cae8 (diff)
downloadscummvm-rg350-8dbbb9b85c8845c4fbdd8412dbe872a159becf04.tar.gz
scummvm-rg350-8dbbb9b85c8845c4fbdd8412dbe872a159becf04.tar.bz2
scummvm-rg350-8dbbb9b85c8845c4fbdd8412dbe872a159becf04.zip
HDB: Added some code to stopping entity.
Now Sergeant stops, but she is in incorrect state. More code needs to be unstubbed
Diffstat (limited to 'engines/hdb/ai-funcs.cpp')
-rw-r--r--engines/hdb/ai-funcs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index c1f7da0ead..093fbd53f6 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -821,6 +821,11 @@ void AI::animateEntity(AIEntity *e) {
// If entity not player, stop it here
// If entity is player and no waypoints are left, stop it here
if (e != _player || (!_numWaypoints && e == _player)) {
+ e->tileX = e->goalX;
+ e->tileY = e->goalY;
+
+ stopEntity(e);
+
warning("STUB: animateEntity: Stop entity");
} else if (onEvenTile(e->x, e->y))
setEntityGoal(e, _waypoints[0].x, _waypoints[0].y);