mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
optimizes some movement code (#32332)
Co-authored-by: ancientpower <leereddit@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user