mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Multi-Z Support for Lazy Templates | Cleans up some turf flag misuse (#77786)
## About The Pull Request Adds multi-z support for lazy templates Also fixes some improper use and placement for turf flags ## Why It's Good For The Game Shadow needs/wants this for bit runner maps. Turf flags are also why lava has been generating in places it shouldnt. (inside of ruins) ## Changelog 🆑 fix: Lava can no longer occasionally generate inside of previously loaded templates and breach and/or destroy shit /🆑 --------- Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com> Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
co-authored by
Jeremiah
LemonInTheDark
parent
a67404f5dc
commit
1b96345e44
@@ -28,7 +28,18 @@
|
||||
var/z_offset = SSmapping.station_start
|
||||
var/list/bounds
|
||||
for (var/path in SSmapping.config.GetFullMapPaths())
|
||||
var/datum/parsed_map/parsed = load_map(file(path), 1, 1, z_offset, measureOnly = FALSE, no_changeturf = FALSE, cropMap=TRUE, x_lower = mother1.x_low, y_lower = mother1.y_low, x_upper = mother1.x_high, y_upper = mother1.y_high)
|
||||
var/datum/parsed_map/parsed = load_map(
|
||||
file(path),
|
||||
1,
|
||||
1,
|
||||
z_offset,
|
||||
no_changeturf = FALSE,
|
||||
crop_map = TRUE,
|
||||
x_lower = mother1.x_low,
|
||||
y_lower = mother1.y_low,
|
||||
x_upper = mother1.x_high,
|
||||
y_upper = mother1.y_high,
|
||||
)
|
||||
bounds = parsed?.bounds
|
||||
z_offset += bounds[MAP_MAXZ] - bounds[MAP_MINZ] + 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user