mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 08:48:13 +00:00
LOL: implemented some missing monster animation code
svn-id: r41327
This commit is contained in:
parent
a881ba9d42
commit
09fe7b3152
@ -601,10 +601,6 @@ Common::Error LoLEngine::go() {
|
||||
enableSysTimer(1);
|
||||
runLoop();
|
||||
|
||||
delete _tim;
|
||||
_tim = 0;
|
||||
|
||||
// TODO: outro
|
||||
return Common::kNoError;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user