Skip to content

Commit

Permalink
fix VV "Jump To" (#16925)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xander3359 authored Jan 17, 2025
1 parent 7fbeac5 commit 9fc23c7
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions code/game/atoms/_atom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -571,26 +571,25 @@ directive is properly returned.
if(href_list[VV_HK_ATOM_JUMP_TO])
if(!check_rights(NONE))
return
var/x = text2num(href_list["X"])
var/y = text2num(href_list["Y"])
var/z = text2num(href_list["Z"])
var/client/C = usr.client

if(x == 0 && y == 0 && z == 0)
var/target = GET_VV_TARGET
if(!target)
return
var/turf/target_turf = get_turf(target)
if(!target_turf)
return
var/client/C = usr.client

var/message
if(!isobserver(usr))
usr.client.holder.admin_ghost()
message = TRUE

var/mob/dead/observer/O = C.mob
var/turf/T = locate(x, y, z)
O.forceMove(T)
O.forceMove(target_turf)

if(message)
log_admin("[key_name(O)] jumped to coordinates [AREACOORD(T)].")
message_admins("[ADMIN_TPMONTY(O)] jumped to coordinates [ADMIN_VERBOSEJMP(T)].")
log_admin("[key_name(O)] jumped to coordinates [AREACOORD(target_turf)].")
message_admins("[ADMIN_TPMONTY(O)] jumped to coordinates [ADMIN_VERBOSEJMP(target_turf)].")

if(href_list[VV_HK_MODIFY_TRANSFORM])
if(!check_rights(R_DEBUG))
Expand Down

0 comments on commit 9fc23c7

Please sign in to comment.