Fix compilation on older BYOND versions (#72633)

## About The Pull Request

Fix compilation on certain BYOND versions, among them 514.1582. This
line currently causes an error as floor_designs is already defined
earlier

Co-authored-by: oranges <email@oranges.net.nz>
This commit is contained in:
Cyprex
2023-01-17 21:48:28 -08:00
committed by GitHub
co-authored by oranges
parent 9d10965aec
commit 69712f7900
+6 -6
View File
@@ -246,12 +246,12 @@
//infer available overlays on the floor to recreate them to the best extent
QDEL_LIST(design_overlays)
var/floor_designs = floor.managed_overlays
if(isnull(floor_designs))
floor_designs = list()
else if(!islist(floor_designs))
floor_designs = list(floor.managed_overlays)
for(var/mutable_appearance/appearance as anything in floor_designs)
var/floor_overlays = floor.managed_overlays
if(isnull(floor_overlays))
floor_overlays = list()
else if(!islist(floor_overlays))
floor_overlays = list(floor.managed_overlays)
for(var/mutable_appearance/appearance as anything in floor_overlays)
design_overlays += new /datum/overlay_info(appearance)
//store all information about this tile