From 773bf7fa728aa67079f209a2cd467ee766e93f99 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 18 Jan 2023 14:31:55 +0100 Subject: [PATCH] [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 * Fix compilation on older BYOND versions Co-authored-by: Cyprex <35031555+Cyprex@users.noreply.github.com> Co-authored-by: oranges --- code/game/objects/items/RTD.dm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/game/objects/items/RTD.dm b/code/game/objects/items/RTD.dm index ef600749179..f7b814e9373 100644 --- a/code/game/objects/items/RTD.dm +++ b/code/game/objects/items/RTD.dm @@ -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