Performance tweaks (#3359)

Mostly aims to reduce meaningless proc-calls in Move() and forceMove(), also inlines the rest of the power calculations in SSmachinery to remove a lot of proc-calls.
This commit is contained in:
Lohikar
2017-09-02 21:33:03 +03:00
committed by Erki
parent 68d3fa60f5
commit 08dcdba926
6 changed files with 77 additions and 37 deletions
+8
View File
@@ -1191,6 +1191,14 @@ mob/proc/yank_out_object()
. = ..()
if (!contained_mobs) // If this is true, the parent will have already called the client hook.
update_client_hook(loc)
/mob/Move()
. = ..()
if (. && !contained_mobs && client)
update_client_hook(loc)
/mob/verb/northfaceperm()
set hidden = 1
set_face_dir(client.client_dir(NORTH))