HDB: Unstub 'Increment Stun Timer'

This commit is contained in:
Nipun Garg 2019-06-21 09:46:33 +05:30 committed by Eugene Sandulenko
parent a56dca47f8
commit 1a8292fccb

View File

@ -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) {