[Scummvm-git-logs] scummvm master -> 4628ab3ff6f84d263f354ff008dd189031bdac03
aquadran
aquadran at gmail.com
Sun Mar 7 20:57:34 UTC 2021
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:
4628ab3ff6 ICB: Allow change control method
Commit: 4628ab3ff6f84d263f354ff008dd189031bdac03
https://github.com/scummvm/scummvm/commit/4628ab3ff6f84d263f354ff008dd189031bdac03
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-03-07T21:57:29+01:00
Commit Message:
ICB: Allow change control method
Changed paths:
engines/icb/options_manager_pc.cpp
diff --git a/engines/icb/options_manager_pc.cpp b/engines/icb/options_manager_pc.cpp
index 8aa4f2c3cb..6e8ad4b49f 100644
--- a/engines/icb/options_manager_pc.cpp
+++ b/engines/icb/options_manager_pc.cpp
@@ -2695,8 +2695,11 @@ void OptionsManager::AlterSelected(bool8 _right_) {
case DEVICE:
break;
- case METHOD: // Force actor relative if we're using the keyboard
- g_icb_session->player.Set_control_mode(ACTOR_RELATIVE);
+ case METHOD:
+ if (g_icb_session->player.Get_control_mode() == ACTOR_RELATIVE)
+ g_icb_session->player.Set_control_mode(SCREEN_RELATIVE);
+ else
+ g_icb_session->player.Set_control_mode(ACTOR_RELATIVE);
break;
default:
More information about the Scummvm-git-logs
mailing list