Revert "optimizes some movement code (#32332)" (#32340)

This reverts commit a71f9fbd44.
This commit is contained in:
Exxion
2022-04-02 15:02:29 -04:00
committed by GitHub
parent c4e4459623
commit 8812b2a176
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
move_dir = 0 //keep track of the direction the player is currently trying to move in.
true_dir = 0
keypresses = 0
CAN_MOVE_DIAGONALLY = TRUE
CAN_MOVE_DIAGONALLY = 0
//rebind your interface so that your north/south/east/west keypresses are bound to:
//keydown: MoveKey [Direction] 1

View File

@@ -1,14 +1,14 @@
/mob/dead/observer/Login()
..()
observers += src
client.show_popup_menus = TRUE
if(src.check_rights(R_ADMIN|R_FUN))
to_chat(src, "<span class='warning'>You are now an admin ghost. Think of yourself as an AI that doesn't show up anywhere and cannot speak. You can access any console or machine by standing next to it and clicking on it. Abuse of this privilege may result in hilarity or removal of your flags, so caution is recommended.</span>")
if(client)
client.CAN_MOVE_DIAGONALLY = TRUE
client.CAN_MOVE_DIAGONALLY = 1
/mob/dead/observer/MouseDrop(atom/over)
if(!usr || !over)

View File

@@ -122,7 +122,7 @@
update_colour()
if(client)
client.CAN_MOVE_DIAGONALLY = TRUE
client.CAN_MOVE_DIAGONALLY = 0
if(iscluwnebanned(src) && (timeofdeath > 0 || !iscluwne(src)))
log_admin("Cluwnebanned player [key_name(src)] attempted to join and was kicked.")