Revert "Cut down on z-level generation for shuttles (#13573)" (#13586)

This reverts commit 24f31ef511.
This commit is contained in:
Wildkins
2022-04-20 01:09:30 +02:00
committed by GitHub
parent 30201e72b0
commit 185dd93a18
5 changed files with 7 additions and 13 deletions
+3 -8
View File
@@ -7,7 +7,6 @@
var/obj/effect/shuttle_landmark/ship/landmark // Record our open space landmark for easy reference.
var/multiz = 0 // Index of multi-z levels, starts at 0
var/status = SHIP_STATUS_LANDED
var/subshuttle = FALSE // TRUE/FALSE: Is this a ship that starts docked to another ship?
icon_state = "shuttle"
moving_state = "shuttle_moving"
@@ -35,12 +34,8 @@
// We autobuild our z levels.
/obj/effect/overmap/visitable/ship/landable/find_z_levels()
if(isStationLevel(z) || multiz || subshuttle)
// If we're not on station and not multi-z or inside an existing ship, then we already had a z-level generated for us; let's use that
for(var/i = 0 to multiz)
world.maxz++
map_z += world.maxz
else
for(var/i = 0 to multiz)
world.maxz++
map_z += world.maxz
var/turf/center_loc = locate(round(world.maxx/2), round(world.maxy/2), world.maxz)
@@ -173,4 +168,4 @@
if(SHIP_STATUS_TRANSIT)
return "Maneuvering under secondary thrust."
if(SHIP_STATUS_OVERMAP)
return "In open space."
return "In open space."