From 1a8292fccbd82583c124ce060a990993e8c5f0bb Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Fri, 21 Jun 2019 09:46:33 +0530 Subject: HDB: Unstub 'Increment Stun Timer' --- engines/hdb/ai-funcs.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index 32bd8a65b4..9bbcf9d329 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -924,6 +924,7 @@ void AI::animLuaEntity(const char *initName, AIState st) { void AI::drawEnts(int x, int y, int w, int h) { static int stunAnim = 0; + static uint32 stunTimer = g_hdb->getTimeSlice(); // Draw Floating Entities for (Common::Array::iterator it = _floats->begin(); it != _floats->end(); it++) { @@ -1003,7 +1004,10 @@ void AI::drawEnts(int x, int y, int w, int h) { e->onScreen = 0; } - warning("STUB: AI::drawEnts: Increment Stun Timer"); + if (stunTimer < g_hdb->getTimeSlice()) { + stunAnim = (stunAnim + 1) & 3; + stunTimer = g_hdb->getTimeSlice(); + } // Draw player last if (_player && _player->level < 2 && !_playerInvisible && _player->draw) { -- cgit v1.2.3