mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 12:19:18 +02:00
move captureonstart handling to drivermode
This commit is contained in:
@@ -1035,14 +1035,6 @@ eu07_application::init_modes() {
|
||||
else
|
||||
push_mode( mode::scenarioloader );
|
||||
|
||||
if (Global.captureonstart)
|
||||
{
|
||||
Global.ControlPicking = false;
|
||||
glfwSetInputMode(m_windows.front(), GLFW_CURSOR, GLFW_CURSOR_DISABLED);
|
||||
}
|
||||
else
|
||||
Global.ControlPicking = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -421,7 +421,7 @@ driver_mode::enter() {
|
||||
|
||||
Timer::ResetTimers();
|
||||
|
||||
set_picking( Global.ControlPicking );
|
||||
set_picking( !Global.captureonstart );
|
||||
}
|
||||
|
||||
// maintenance method, called when the mode is deactivated
|
||||
|
||||
Reference in New Issue
Block a user