Turfs who spawn with the spawn verb or with buildmode will now use the ChangeTurf() proc and stop making Linda runtime to hell.

This commit is contained in:
Aranclanos
2014-01-07 09:19:59 -03:00
parent fbeeae0a4c
commit 42e13b8914
2 changed files with 18 additions and 11 deletions
+5 -1
View File
@@ -762,7 +762,11 @@ var/global/floorIsLava = 0
return
chosen = matches[chosen]
new chosen(usr.loc)
if(ispath(chosen,/turf))
var/turf/T = get_turf(usr.loc)
T.ChangeTurf(chosen)
else
new chosen(usr.loc)
log_admin("[key_name(usr)] spawned [chosen] at ([usr.x],[usr.y],[usr.z])")
feedback_add_details("admin_verb","SA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!