aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-06-30 23:21:10 +0200
committerEugene Sandulenko2019-09-03 17:17:05 +0200
commitb697371154c4648e9523222c39c6639337fc2dd8 (patch)
tree24ce4f71fda194a54de336dcfabeb8436a3ef32f
parent224658a1ba97499c61ef92f74444f4abde7ce994 (diff)
downloadscummvm-rg350-b697371154c4648e9523222c39c6639337fc2dd8.tar.gz
scummvm-rg350-b697371154c4648e9523222c39c6639337fc2dd8.tar.bz2
scummvm-rg350-b697371154c4648e9523222c39c6639337fc2dd8.zip
HDB: Make animations follow the requested framerate
-rw-r--r--engines/hdb/ai-funcs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index 42562e5a1a..6c0feec8f2 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -1724,6 +1724,8 @@ void AI::moveEnts() {
if (frameDelay-- > 0)
return;
+ frameDelay = kAnimFrameDelay;
+
// Call aiAction for Floating Entities
for (Common::Array<AIEntity *>::iterator it = _floats->begin(); it != _floats->end(); it++) {
if ((*it)->aiAction)