mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
[MIRROR] Fix compilation on older BYOND versions [MDB IGNORE] (#18802)
* 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> * Fix compilation on older BYOND versions Co-authored-by: Cyprex <35031555+Cyprex@users.noreply.github.com> Co-authored-by: oranges <email@ oranges.net.nz>
This commit is contained in:
co-authored by
oranges
Cyprex
parent
1ba87fab01
commit
773bf7fa72
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user