mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-30 16:16:47 +01:00
modular map loader
yep
This commit is contained in:
@@ -32,11 +32,17 @@
|
||||
if(!cached_map)
|
||||
return
|
||||
|
||||
discover_port_offset()
|
||||
//SPLURT EDIT
|
||||
var/offset = discover_offset(/obj/docking_port/mobile)
|
||||
|
||||
port_x_offset = offset[1]
|
||||
port_y_offset = offset[2]
|
||||
//SPLURT EDIT END
|
||||
|
||||
if(!cached_map)
|
||||
cached_map = null
|
||||
|
||||
/* SPLURT EDIT - Refractored in modular
|
||||
/datum/map_template/shuttle/proc/discover_port_offset()
|
||||
var/key
|
||||
var/list/models = cached_map.grid_models
|
||||
@@ -56,6 +62,7 @@
|
||||
return
|
||||
++xcrd
|
||||
--ycrd
|
||||
*/
|
||||
|
||||
/datum/map_template/shuttle/load(turf/T, centered = FALSE, orientation = SOUTH, annihilate = default_annihilate, force_cache = FALSE, rotate_placement_to_orientation = FALSE, register = TRUE)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user