click fix

This commit is contained in:
Anuken 2020-09-13 14:32:15 -04:00
parent 30c45e6a43
commit be229f441e

View File

@ -353,7 +353,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
player.builder().updateBuilding(isBuilding);
}
if(player.shooting && !wasShooting && player.unit().hasWeapons()){
if(player.shooting && !wasShooting && player.unit().hasWeapons() && state.rules.unitAmmo && player.unit().ammo <= 0){
player.unit().type().weapons.first().noAmmoSound.at(player.unit());
}