1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00

make it impossible to scroll through weapons while driving

This commit is contained in:
vflyson 2017-02-17 17:40:33 -05:00 committed by Daniel Evans
parent 01241f33d9
commit 4121378729

View File

@ -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()) {