optimizes some movement code (#32332)

Co-authored-by: ancientpower <leereddit@gmail.com>
This commit is contained in:
ancientpower
2022-04-01 12:17:38 -05:00
committed by GitHub
parent aedc462da7
commit a71f9fbd44
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 = 0
CAN_MOVE_DIAGONALLY = TRUE
//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 = 1
client.CAN_MOVE_DIAGONALLY = TRUE
/mob/dead/observer/MouseDrop(atom/over)
if(!usr || !over)

View File

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