From c6aab291fe4c60a00a514385893ec246261404ee Mon Sep 17 00:00:00 2001 From: EnbyFriend Date: Fri, 17 Mar 2023 00:59:03 -0500 Subject: [PATCH] Fixes the RPD (again (hopefully for the last time (fingers crossed))) Indentation error caused you to be unable to select new pipe type & static vars made it so any RPD after the first would cause TGUI to break --- code/game/objects/items/weapons/RPD.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/weapons/RPD.dm b/code/game/objects/items/weapons/RPD.dm index 4e32d69bb0..735dd2aced 100644 --- a/code/game/objects/items/weapons/RPD.dm +++ b/code/game/objects/items/weapons/RPD.dm @@ -31,9 +31,9 @@ var/category = ATMOS_CATEGORY var/piping_layer = PIPING_LAYER_DEFAULT var/obj/item/tool/wrench/tool - var/datum/pipe_recipe/recipe // pipe recipie selected for display/construction - var/static/datum/pipe_recipe/first_atmos - var/static/datum/pipe_recipe/first_disposal + var/datum/pipe_recipe/recipe + var/datum/pipe_recipe/first_atmos + var/datum/pipe_recipe/first_disposal var/mode = BUILD_MODE | DESTROY_MODE | WRENCH_MODE var/static/list/pipe_layers = list( "Regular" = PIPING_LAYER_REGULAR, @@ -53,7 +53,7 @@ /obj/item/pipe_dispenser/proc/SetupPipes() if(!first_atmos) first_atmos = GLOB.atmos_pipe_recipes[GLOB.atmos_pipe_recipes[1]][1] - recipe = first_atmos + recipe = first_atmos if(!first_disposal) first_disposal = GLOB.disposal_pipe_recipes[GLOB.disposal_pipe_recipes[1]][1]