Fixed player looking at cursor with no ammo

This commit is contained in:
Anuken
2018-05-06 21:35:59 -04:00
parent ad3ce3f9fc
commit 84a126253a
2 changed files with 2 additions and 3 deletions
@@ -263,7 +263,7 @@ public class Player extends Unit{
movement.y += ya*speed;
movement.x += xa*speed;
boolean shooting = control.input().canShoot() && control.input().isShooting();
boolean shooting = control.input().canShoot() && control.input().isShooting() && inventory.hasAmmo();
if(shooting){
weapon.update(player, true);