aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/timer_lol.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2009-12-26 14:12:38 +0000
committerFlorian Kagerer2009-12-26 14:12:38 +0000
commit193b23bcad887fc3d6e5343f755e236936b9c969 (patch)
tree380703ff20dcd9983781026cae564ed7506dbec2 /engines/kyra/timer_lol.cpp
parent657b881c4ec1d39bf9d504bd135ee30b91fab6bb (diff)
downloadscummvm-rg350-193b23bcad887fc3d6e5343f755e236936b9c969.tar.gz
scummvm-rg350-193b23bcad887fc3d6e5343f755e236936b9c969.tar.bz2
scummvm-rg350-193b23bcad887fc3d6e5343f755e236936b9c969.zip
LOL: fixed minor bug in lamp code
svn-id: r46587
Diffstat (limited to 'engines/kyra/timer_lol.cpp')
-rw-r--r--engines/kyra/timer_lol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/timer_lol.cpp b/engines/kyra/timer_lol.cpp
index fb3aa40672..90cfc1af78 100644
--- a/engines/kyra/timer_lol.cpp
+++ b/engines/kyra/timer_lol.cpp
@@ -245,7 +245,7 @@ void LoLEngine::timerUpdatePortraitAnimations(int skipUpdate) {
}
void LoLEngine::timerUpdateLampState(int timerNum) {
- if ((_flagsTable[31] & 0x08) && (_flagsTable[31] & 0x04) && _lampOilStatus > 0)
+ if ((_flagsTable[31] & 0x08) && (_flagsTable[31] & 0x04) && _brightness && _lampOilStatus)
_lampOilStatus--;
}