mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Necessary fixes for wpiers switcher
This commit is contained in:
@@ -2192,7 +2192,7 @@ void TTrain::OnCommand_wiperswitchincrease(TTrain *Train, command_data const &Co
|
||||
if (Command.action == GLFW_PRESS)
|
||||
{
|
||||
Train->mvOccupied->wiperSwitchPos++;
|
||||
if (Train->mvOccupied->wiperSwitchPos > Train->mvOccupied->WiperListSize)
|
||||
if (Train->mvOccupied->wiperSwitchPos > Train->mvOccupied->WiperListSize - 1)
|
||||
Train->mvOccupied->wiperSwitchPos = Train->mvOccupied->WiperListSize - 1;
|
||||
|
||||
// Visual feedback
|
||||
|
||||
@@ -1109,7 +1109,7 @@ drivermouse_input::default_bindings() {
|
||||
{ "invertertoggle12_bt:",{
|
||||
user_command::invertertoggle12,
|
||||
user_command::none } },
|
||||
{ "wipers_sw:",{
|
||||
{ "wieprs_sw:",{
|
||||
user_command::wiperswitchincrease,
|
||||
user_command::wiperswitchdecrease
|
||||
} },
|
||||
|
||||
@@ -323,6 +323,7 @@ std::string locale::label_cab_control(std::string const &Label)
|
||||
{ "universal7:", STRN("interactive part") },
|
||||
{ "universal8:", STRN("interactive part") },
|
||||
{ "universal9:", STRN("interactive part") },
|
||||
{ "wieprs_sw:", STRN("wipers mode selector") },
|
||||
};
|
||||
|
||||
auto const it = cabcontrols_labels.find( Label );
|
||||
|
||||
Reference in New Issue
Block a user