mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-18 16:32:32 +02:00
make it impossible to scroll through weapons while driving
This commit is contained in:
parent
01241f33d9
commit
4121378729
@ -302,7 +302,9 @@ void IngameState::handlePlayerInput(const SDL_Event& event) {
|
||||
}
|
||||
break;
|
||||
case SDL_MOUSEWHEEL:
|
||||
player->getCharacter()->cycleInventory(event.wheel.y > 0);
|
||||
if (player->getCharacter()->getCurrentVehicle() == nullptr) {
|
||||
player->getCharacter()->cycleInventory(event.wheel.y > 0);
|
||||
}
|
||||
break;
|
||||
case SDL_MOUSEMOTION:
|
||||
if (game->hasFocus()) {
|
||||
|
Loading…
Reference in New Issue
Block a user