diff options
author | Strangerke | 2016-08-23 00:31:34 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 0233b503f1e74b15350f71d7d906e10091ac2688 (patch) | |
tree | 87bd2fe4874e20eb4f7c49b02939b2359fd7b1f6 /engines/dm/timeline.cpp | |
parent | 8ed20d852e8118edf44869cf17c879728f10f255 (diff) | |
download | scummvm-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.cpp | 5 |
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) { |