aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/timeline.cpp
diff options
context:
space:
mode:
authorStrangerke2016-08-23 00:31:34 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit0233b503f1e74b15350f71d7d906e10091ac2688 (patch)
tree87bd2fe4874e20eb4f7c49b02939b2359fd7b1f6 /engines/dm/timeline.cpp
parent8ed20d852e8118edf44869cf17c879728f10f255 (diff)
downloadscummvm-rg350-0233b503f1e74b15350f71d7d906e10091ac2688.tar.gz
scummvm-rg350-0233b503f1e74b15350f71d7d906e10091ac2688.tar.bz2
scummvm-rg350-0233b503f1e74b15350f71d7d906e10091ac2688.zip
DM: Some more work on GCC warnings
Diffstat (limited to 'engines/dm/timeline.cpp')
-rw-r--r--engines/dm/timeline.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/dm/timeline.cpp b/engines/dm/timeline.cpp
index e23e878a7c..4ada95fe2a 100644
--- a/engines/dm/timeline.cpp
+++ b/engines/dm/timeline.cpp
@@ -1013,9 +1013,12 @@ void Timeline::f257_timelineProcessEvent70_light(TimelineEvent* event) {
if ((AL0674_i_LightPower = event->_B._lightPower) == 0) {
return;
}
- if (L0675_B_NegativeLightPower = (AL0674_i_LightPower < 0)) {
+
+ L0675_B_NegativeLightPower = (AL0674_i_LightPower < 0);
+ if (L0675_B_NegativeLightPower) {
AL0674_i_LightPower = -AL0674_i_LightPower;
}
+
L0673_i_WeakerLightPower = AL0674_i_LightPower - 1;
AL0674_i_LightAmount = _vm->_championMan->_lightPowerToLightAmount[AL0674_i_LightPower] - _vm->_championMan->_lightPowerToLightAmount[L0673_i_WeakerLightPower];
if (L0675_B_NegativeLightPower) {