Fixing some infinite loops in gun update_icon() calls.

This commit is contained in:
Zuhayr
2016-01-22 04:22:49 +10:30
parent 8f3b545b10
commit ab9574ee06
4 changed files with 8 additions and 9 deletions

View File

@@ -71,10 +71,10 @@
// list(mode_name="short bursts", burst=5, fire_delay=null, move_delay=6, burst_accuracy=list(0,-1,-2,-2,-3), dispersion=list(0.6, 1.0, 1.0, 1.0, 1.2)),
)
/obj/item/weapon/gun/projectile/automatic/sts35/update_icon()
/obj/item/weapon/gun/projectile/automatic/sts35/update_icon(var/ignore_inhands)
..()
icon_state = (ammo_magazine)? "arifle" : "arifle-empty"
update_held_icon()
if(!ignore_inhands) update_held_icon()
/obj/item/weapon/gun/projectile/automatic/wt550
name = "machine pistol"