[Scummvm-git-logs] scummvm master -> e0c7335ea42a3d69ddd026eaf9c274def4075d28
dreammaster
dreammaster at scummvm.org
Sat Apr 28 20:12:25 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e0c7335ea4 XEEN: Cleanup and fixes for control arrow movement
Commit: e0c7335ea42a3d69ddd026eaf9c274def4075d28
https://github.com/scummvm/scummvm/commit/e0c7335ea42a3d69ddd026eaf9c274def4075d28
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-04-28T14:12:17-04:00
Commit Message:
XEEN: Cleanup and fixes for control arrow movement
Changed paths:
engines/xeen/interface.cpp
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index cf44a60..390328a 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;
More information about the Scummvm-git-logs
mailing list