From 4df0a42eead1b2f644db1f10272d5153ebcc68a1 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 6 Feb 2014 08:09:35 +0100 Subject: TSAGE: R2R - Get rid of some magic values --- engines/tsage/ringworld2/ringworld2_scenes3.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'engines/tsage/ringworld2/ringworld2_scenes3.cpp') diff --git a/engines/tsage/ringworld2/ringworld2_scenes3.cpp b/engines/tsage/ringworld2/ringworld2_scenes3.cpp index e55ae8ff70..f2bb68480d 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes3.cpp +++ b/engines/tsage/ringworld2/ringworld2_scenes3.cpp @@ -1275,7 +1275,7 @@ void Scene3250::signal() { } void Scene3250::dispatch() { - if ((R2_GLOBALS._player._visage == 3250) && (R2_GLOBALS._player._strip == 3) && (R2_GLOBALS._player._effect == 0)) { + if ((R2_GLOBALS._player._visage == 3250) && (R2_GLOBALS._player._strip == 3) && (R2_GLOBALS._player._effect == EFFECT_NONE)) { R2_GLOBALS._player._effect = EFFECT_SHADED2; R2_GLOBALS._player._shade = 6; } @@ -2221,24 +2221,24 @@ void Scene3375::signal() { } void Scene3375::dispatch() { - if ((R2_GLOBALS._player._position.y >= 168) && (R2_GLOBALS._player._effect == 1)) + if ((R2_GLOBALS._player._position.y >= 168) && (R2_GLOBALS._player._effect == EFFECT_SHADED)) R2_GLOBALS._player._effect = EFFECT_SHADED2; - else if ((R2_GLOBALS._player._position.y < 168) && (R2_GLOBALS._player._effect == 6)) + else if ((R2_GLOBALS._player._position.y < 168) && (R2_GLOBALS._player._effect == EFFECT_SHADED2)) R2_GLOBALS._player._effect = EFFECT_SHADED; - if ((_companion1._position.y >= 168) && (_companion1._effect == 1)) + if ((_companion1._position.y >= 168) && (_companion1._effect == EFFECT_SHADED)) _companion1._effect = EFFECT_SHADED2; - else if ((_companion1._position.y < 168) && (_companion1._effect == 6)) + else if ((_companion1._position.y < 168) && (_companion1._effect == EFFECT_SHADED2)) _companion1._effect = EFFECT_SHADED; - if ((_companion2._position.y >= 168) && (_companion2._effect == 1)) + if ((_companion2._position.y >= 168) && (_companion2._effect == EFFECT_SHADED)) _companion2._effect = EFFECT_SHADED2; - else if ((_companion2._position.y < 168) && (_companion2._effect == 6)) + else if ((_companion2._position.y < 168) && (_companion2._effect == EFFECT_SHADED2)) _companion2._effect = EFFECT_SHADED; - if ((_webbster._position.y >= 168) && (_webbster._effect == 1)) + if ((_webbster._position.y >= 168) && (_webbster._effect == EFFECT_SHADED)) _webbster._effect = EFFECT_SHADED2; - else if ((_webbster._position.y < 168) && (_webbster._effect == 6)) + else if ((_webbster._position.y < 168) && (_webbster._effect == EFFECT_SHADED2)) _webbster._effect = EFFECT_SHADED; Scene::dispatch(); -- cgit v1.2.3