mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Fixed #7594, walls becoming nondense due to adminteleport.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/client/proc/jumptoarea(area/A in sortedAreas)
|
||||
/client/proc/jumptoarea(area/A in sortedAreas)
|
||||
set name = "Jump to Area"
|
||||
set desc = "Area to jump to"
|
||||
set category = "Admin"
|
||||
if(!src.holder)
|
||||
src << "Only administrators may use this command."
|
||||
return
|
||||
|
||||
|
||||
if(!A)
|
||||
return
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
var/turf/T = pick_n_take(turfs)
|
||||
if(!T)
|
||||
src << "Nowhere to jump to!"
|
||||
return
|
||||
admin_forcemove(usr, T)
|
||||
return
|
||||
admin_forcemove(usr, T)
|
||||
log_admin("[key_name(usr)] jumped to [A]")
|
||||
message_admins("[key_name_admin(usr)] jumped to [A]")
|
||||
feedback_add_details("admin_verb","JA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
@@ -152,6 +152,7 @@
|
||||
var/startdensity = mover.density
|
||||
var/startflags = mover.pass_flags
|
||||
var/startincorporeal = 0
|
||||
var/startdestinationdensity = newloc.density
|
||||
if(istype(mover, /mob/living))
|
||||
var/mob/living/L = mover
|
||||
startincorporeal = L.incorporeal_move
|
||||
@@ -165,3 +166,5 @@
|
||||
if(istype(mover, /mob/living))
|
||||
var/mob/living/L = mover
|
||||
L.incorporeal_move = startincorporeal
|
||||
newloc.density = startdestinationdensity
|
||||
|
||||
|
||||
Reference in New Issue
Block a user