mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user