mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
MOHAWK: Implement kCSTimeEventCharSomeNIS55.
svn-id: r55445
This commit is contained in:
parent
00cabdad11
commit
bfe0307300
@ -310,6 +310,24 @@ void MohawkEngine_CSTime::eventIdle() {
|
||||
}
|
||||
break;
|
||||
|
||||
case kCSTimeEventCharSomeNIS55:
|
||||
// This is like kCSTimeEventCharPlayNIS, only using a different flag variable.
|
||||
if (_processingNIS55) {
|
||||
CSTimeChar *chr = _case->getCurrScene()->getChar(event.param1);
|
||||
if (chr->NISIsDone()) {
|
||||
chr->removeNIS();
|
||||
_processingNIS55 = false;
|
||||
chr->setupAmbientAnims(true);
|
||||
_events.pop_front();
|
||||
processEvent = false;
|
||||
} else {
|
||||
done = true;
|
||||
}
|
||||
} else {
|
||||
advanceQueue = false;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -350,6 +368,7 @@ bool MohawkEngine_CSTime::NISIsRunning() {
|
||||
|
||||
void MohawkEngine_CSTime::reset() {
|
||||
_NISRunning = false;
|
||||
_processingNIS55 = false;
|
||||
_lastTimeout = 0xffffffff;
|
||||
_processingEvent = false;
|
||||
}
|
||||
@ -531,6 +550,11 @@ void MohawkEngine_CSTime::triggerEvent(CSTimeEvent &event) {
|
||||
// FIXME
|
||||
break;
|
||||
|
||||
case kCSTimeEventCharSomeNIS55:
|
||||
_processingNIS55 = true;
|
||||
_case->getCurrScene()->getChar(event.param1)->playNIS(event.param2);
|
||||
break;
|
||||
|
||||
case kCSTimeEventUpdateBubble:
|
||||
switch (event.param2) {
|
||||
case 0:
|
||||
|
@ -178,6 +178,7 @@ private:
|
||||
uint16 _nextSceneId;
|
||||
|
||||
bool _processingEvent;
|
||||
bool _processingNIS55;
|
||||
bool _NISRunning;
|
||||
uint32 _lastTimeout;
|
||||
void reset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user