mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 19:44:58 +01:00
Fix 100k toggle move intent comsig runtimes (#82239)
## About The Pull Request `user` isn't passed in many situations in which `toggle_move_intent` is called and also it's useless to pass `user` because it should just be The Mob
This commit is contained in:
@@ -384,7 +384,7 @@
|
||||
/atom/movable/screen/mov_intent/proc/toggle(mob/living/user)
|
||||
if(!istype(user))
|
||||
return
|
||||
user.toggle_move_intent(user)
|
||||
user.toggle_move_intent()
|
||||
|
||||
/atom/movable/screen/pull
|
||||
name = "stop pulling"
|
||||
|
||||
@@ -493,14 +493,14 @@
|
||||
set instant = TRUE
|
||||
if(isliving(mob))
|
||||
var/mob/living/user_mob = mob
|
||||
user_mob.toggle_move_intent(usr)
|
||||
user_mob.toggle_move_intent()
|
||||
|
||||
/**
|
||||
* Toggle the move intent of the mob
|
||||
*
|
||||
* triggers an update the move intent hud as well
|
||||
*/
|
||||
/mob/living/proc/toggle_move_intent(mob/user)
|
||||
/mob/living/proc/toggle_move_intent()
|
||||
if(move_intent == MOVE_INTENT_RUN)
|
||||
move_intent = MOVE_INTENT_WALK
|
||||
else
|
||||
@@ -510,7 +510,7 @@
|
||||
selector.update_appearance()
|
||||
update_move_intent_slowdown()
|
||||
|
||||
SEND_SIGNAL(user, COMSIG_MOVE_INTENT_TOGGLED)
|
||||
SEND_SIGNAL(src, COMSIG_MOVE_INTENT_TOGGLED)
|
||||
|
||||
///Moves a mob upwards in z level
|
||||
/mob/verb/up()
|
||||
|
||||
Reference in New Issue
Block a user