From e0c7335ea42a3d69ddd026eaf9c274def4075d28 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 28 Apr 2018 14:12:17 -0400 Subject: XEEN: Cleanup and fixes for control arrow movement --- engines/xeen/interface.cpp | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'engines') diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp index cf44a602c9..390328aa21 100644 --- a/engines/xeen/interface.cpp +++ b/engines/xeen/interface.cpp @@ -464,6 +464,13 @@ void Interface::perform() { } break; + case (Common::KBD_CTRL << 16) | Common::KEYCODE_DOWN: + party._mazeDirection = (Direction)((int)party._mazeDirection ^ 2); + _flipSky = !_flipSky; + _isAnimReset = true; + stepTime(); + break; + case Common::KEYCODE_F1: case Common::KEYCODE_F2: case Common::KEYCODE_F3: @@ -896,22 +903,6 @@ bool Interface::checkMoveDirection(int key) { Sound &sound = *_vm->_sound; Direction dir = party._mazeDirection; - switch (key) { - case (Common::KBD_CTRL << 16) | Common::KEYCODE_LEFT: - party._mazeDirection = (party._mazeDirection == DIR_NORTH) ? DIR_WEST : - (Direction)(party._mazeDirection - 1); - break; - case (Common::KBD_CTRL << 16) | Common::KEYCODE_RIGHT: - party._mazeDirection = (party._mazeDirection == DIR_WEST) ? DIR_NORTH : - (Direction)(party._mazeDirection + 1); - break; - case Common::KEYCODE_DOWN: - party._mazeDirection = (Direction)((int)party._mazeDirection ^ 2); - break; - default: - break; - } - map.getCell(7); int startSurfaceId = map._currentSurfaceId; int surfaceId; -- cgit v1.2.3