LOL: implemented some missing monster animation code

svn-id: r41327
This commit is contained in:
Florian Kagerer 2009-06-07 10:34:01 +00:00
parent a881ba9d42
commit 09fe7b3152
2 changed files with 12 additions and 8 deletions

View File

@ -601,10 +601,6 @@ Common::Error LoLEngine::go() {
enableSysTimer(1);
runLoop();
delete _tim;
_tim = 0;
// TODO: outro
return Common::kNoError;
}

View File

@ -771,12 +771,20 @@ int LoLEngine::getMonsterCurFrame(MonsterInPlay *m, uint16 dirFlags) {
break;
case 2:
///////
// TODO
return (m->fightCurTick >= 13) ? 13 : m->fightCurTick;
break;
case 3:
///////
// TODO
switch (m->mode) {
case 5:
return m->damageReceived ? 5 : 6;
case 8:
return (m->fightCurTick + 6);
case 11:
return 5;
default:
return m->damageReceived ? 5 : m->currentSubFrame;
}
break;
default:
break;