aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-21 09:46:33 +0530
committerEugene Sandulenko2019-09-03 17:16:54 +0200
commit1a8292fccbd82583c124ce060a990993e8c5f0bb (patch)
tree21697c9300774ec67231ecdce29acf337e44862d
parenta56dca47f85cc12b60ed3a3702fd5ac44a337b4e (diff)
downloadscummvm-rg350-1a8292fccbd82583c124ce060a990993e8c5f0bb.tar.gz
scummvm-rg350-1a8292fccbd82583c124ce060a990993e8c5f0bb.tar.bz2
scummvm-rg350-1a8292fccbd82583c124ce060a990993e8c5f0bb.zip
HDB: Unstub 'Increment Stun Timer'
-rw-r--r--engines/hdb/ai-funcs.cpp6
1 files changed, 5 insertions, 1 deletions
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<AIEntity *>::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) {