1
0
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:
vflyson 2017-02-18 20:17:05 -05:00 committed by Daniel Evans
parent cf767d161f
commit 87fb087485

View File

@ -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;