Minor refactor to reduce calls to handle_actions().

This commit is contained in:
Zuhayr
2015-06-02 18:30:13 +09:30
parent 4a7b728fa2
commit 717b191fe2
5 changed files with 7 additions and 6 deletions

View File

@@ -27,7 +27,6 @@
//Status updates, death etc. //Status updates, death etc.
handle_regular_status_updates() handle_regular_status_updates()
handle_actions()
update_canmove() update_canmove()
update_icons() update_icons()

View File

@@ -27,7 +27,6 @@
//Status updates, death etc. //Status updates, death etc.
handle_regular_status_updates() handle_regular_status_updates()
update_canmove() update_canmove()
handle_actions()
if(client) if(client)
handle_regular_hud_updates() handle_regular_hud_updates()

View File

@@ -117,7 +117,6 @@
//Status updates, death etc. //Status updates, death etc.
handle_regular_status_updates() //Optimized a bit handle_regular_status_updates() //Optimized a bit
handle_actions()
update_canmove() update_canmove()
//Update our name based on whether our face is obscured/disfigured //Update our name based on whether our face is obscured/disfigured

View File

@@ -28,7 +28,6 @@
handle_environment(environment) // Handle temperature/pressure differences between body and environment handle_environment(environment) // Handle temperature/pressure differences between body and environment
handle_regular_status_updates() // Status updates, death etc. handle_regular_status_updates() // Status updates, death etc.
handle_actions()
/mob/living/carbon/slime/proc/handle_environment(datum/gas_mixture/environment) /mob/living/carbon/slime/proc/handle_environment(datum/gas_mixture/environment)
if(!environment) if(!environment)

View File

@@ -1,3 +1,8 @@
/mob/living/Life()
..()
if(stat != DEAD)
handle_actions()
//mob verbs are faster than object verbs. See mob/verb/examine. //mob verbs are faster than object verbs. See mob/verb/examine.
/mob/living/verb/pulled(atom/movable/AM as mob|obj in oview(1)) /mob/living/verb/pulled(atom/movable/AM as mob|obj in oview(1))
set name = "Pull" set name = "Pull"
@@ -609,7 +614,7 @@ default behaviour is:
/mob/living/proc/escape_inventory(obj/item/weapon/holder/H) /mob/living/proc/escape_inventory(obj/item/weapon/holder/H)
if(H != src.loc) return if(H != src.loc) return
var/mob/M = H.loc //Get our mob holder (if any). var/mob/M = H.loc //Get our mob holder (if any).
if(istype(M)) if(istype(M))
@@ -794,5 +799,5 @@ default behaviour is:
inertia_dir = 2 inertia_dir = 2
src << "<span class='warning>Something you are carrying is preventing you from leaving.</span>" src << "<span class='warning>Something you are carrying is preventing you from leaving.</span>"
return return
..() ..()