mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove unnecessary else block
This commit is contained in:
parent
cf78d6841d
commit
2af5e0dc82
|
@ -236,8 +236,7 @@ std::optional<ShortcutInput> ShortcutManager::ConvertLegacyBinding(uint16_t bind
|
||||||
{
|
{
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
ShortcutInput result;
|
ShortcutInput result;
|
||||||
result.Kind = InputDeviceKind::Keyboard;
|
result.Kind = InputDeviceKind::Keyboard;
|
||||||
if (binding & shift)
|
if (binding & shift)
|
||||||
|
@ -251,7 +250,6 @@ std::optional<ShortcutInput> ShortcutManager::ConvertLegacyBinding(uint16_t bind
|
||||||
result.Button = SDL_GetKeyFromScancode(static_cast<SDL_Scancode>(binding & 0xFF));
|
result.Button = SDL_GetKeyFromScancode(static_cast<SDL_Scancode>(binding & 0xFF));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void ShortcutManager::LoadLegacyBindings(const fs::path& path)
|
void ShortcutManager::LoadLegacyBindings(const fs::path& path)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue