mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 02:12:45 +01:00
only allow to scroll through weapons if alive
This commit is contained in:
parent
cf767d161f
commit
87fb087485
@ -302,7 +302,8 @@ void IngameState::handlePlayerInput(const SDL_Event& event) {
|
||||
}
|
||||
break;
|
||||
case SDL_MOUSEWHEEL:
|
||||
if (player->getCharacter()->getCurrentVehicle() == nullptr) {
|
||||
if (player->getCharacter()->getCurrentVehicle() == nullptr &&
|
||||
player->getCharacter()->isAlive()) {
|
||||
player->getCharacter()->cycleInventory(event.wheel.y > 0);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user