aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathrxx2012-01-08 23:53:40 +0100
committerathrxx2012-01-08 23:59:10 +0100
commitcc3fc3f3da71a39797cb2d25ff531f174c126358 (patch)
treedaf690a9d04ff874b4f4aae6c98680c3986d15cf
parentd1e9d382143e94f2b1129a7993933825a731bfd3 (diff)
downloadscummvm-rg350-cc3fc3f3da71a39797cb2d25ff531f174c126358.tar.gz
scummvm-rg350-cc3fc3f3da71a39797cb2d25ff531f174c126358.tar.bz2
scummvm-rg350-cc3fc3f3da71a39797cb2d25ff531f174c126358.zip
KYRA: fix regression in non-playable HOF demo
(missing animated items)
-rw-r--r--engines/kyra/sequences_hof.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/kyra/sequences_hof.cpp b/engines/kyra/sequences_hof.cpp
index 2e5e20c02f..686c3c9320 100644
--- a/engines/kyra/sequences_hof.cpp
+++ b/engines/kyra/sequences_hof.cpp
@@ -234,6 +234,8 @@ void KyraEngine_HoF::seq_playSequences(int startSeq, int endSeq) {
int32 dly = _tickLength - (now - _seqSubFrameStartTime);
if (dly > 0)
delay(MIN<uint32>(dly, tdiff));
+ else
+ updateInput();
}
}
@@ -263,6 +265,8 @@ void KyraEngine_HoF::seq_playSequences(int startSeq, int endSeq) {
int32 dly = _tickLength - (now - _seqSubFrameStartTime);
if (dly > 0)
delay(MIN<uint32>(dly, tdiff));
+ else
+ updateInput();
}
seq_sequenceCommand(cseq.finalCommand);
@@ -2780,8 +2784,8 @@ void KyraEngine_HoF::seq_init() {
Screen::decodeFrame4(shp + 10, _animShapeFiledata, outsize);
delete[] shp;
- for (int numShp = 0; getShapePtr(numShp); ++numShp)
- addShapeToPool(_screen->getPtrToShape(_animShapeFiledata, numShp), numShp);
+ for (int i = 0; i < 20; i++)
+ addShapeToPool(_screen->getPtrToShape(_animShapeFiledata, i), i);
} else {
const MainMenu::StaticData data = {
{ _sequenceStrings[97], _sequenceStrings[96], _sequenceStrings[95], _sequenceStrings[98], 0 },