From b697371154c4648e9523222c39c6639337fc2dd8 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 30 Jun 2019 23:21:10 +0200 Subject: HDB: Make animations follow the requested framerate --- engines/hdb/ai-funcs.cpp | 2 ++ 1 file changed, 2 insertions(+) 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::iterator it = _floats->begin(); it != _floats->end(); it++) { if ((*it)->aiAction) -- cgit v1.2.3