Fix map element loading

This commit is contained in:
unid15
2016-05-29 11:32:49 +02:00
parent cc1cc5611e
commit 2a910bcb49

View File

@@ -1164,7 +1164,7 @@ var/list/admin_verbs_mod = list(
log_admin("[key_name(src)] is loading [ME.file_path] at [x_coord], [y_coord], [z_coord]")
message_admins("[key_name_admin(src)] is loading [ME.file_path] at [x_coord], [y_coord], [z_coord]")
ME.load(x_coord, y_coord, z_coord)
ME.load(x_coord - 1, y_coord - 1, z_coord) //Reduce X and Y by 1 because these arguments are actually offsets, and they're added to 1;1 in the map loader. Without this, spawning something at 1;1 would result in it getting spawned at 2;2
message_admins("[ME.file_path] loaded at [ME.location ? formatJumpTo(ME.location) : "[x_coord], [y_coord], [z_coord]"]")
/client/proc/create_awaymission()