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
@@ -34,7 +34,7 @@
C << "<span class='warning'>Your leg[number_legs > 1 ? "s burn":" burns"] with pain!</span>"
C.apply_damage(cultist_damage * 0.5, BURN, "l_leg")
C.apply_damage(cultist_damage * 0.5, BURN, "r_leg")
C.m_intent = "walk"
C.toggle_move_intent()
//Judicial Visor: Creates a judicial visor, which can smite an area.
+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)