Fixes Belligerent not updating the hud walk/run button

This commit is contained in:
Joan Lung
2016-11-23 15:49:26 -05:00
parent c036a3d366
commit a95660d700
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -414,7 +414,10 @@
/client/verb/toggle_walk_run()
set name = "toggle-walk-run"
set hidden = 1
if(mob)
mob.toggle_move_intent()
if(mob && mob.hud_used && mob.hud_used.static_inventory)
for(var/obj/screen/mov_intent/selector in mob.hud_used.static_inventory)
selector.toggle(mob);
/mob/proc/toggle_move_intent()
if(hud_used && hud_used.static_inventory)
for(var/obj/screen/mov_intent/selector in hud_used.static_inventory)
selector.toggle(src)