From bc6a2fb593887b4323519c56a2e008ca83a0e077 Mon Sep 17 00:00:00 2001 From: Adrer Date: Wed, 25 Sep 2024 12:11:28 +0200 Subject: [PATCH] You can now map in flipped tables (#26825) Co-authored-by: adrermail@gmail.com --- code/game/objects/structures/tables_racks.dm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index 8e9dad45c92..42723b2d039 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -100,6 +100,16 @@ if(flipped) clear_smooth_overlays() +// Need to override this to allow flipped tables to be mapped in without the smoothing subsystem resetting the icon_state +/obj/structure/table/set_smoothed_icon_state(new_junction) + if(flipped) + return + ..() + +/obj/structure/table/flipped + icon_state = "tableflip0" + flipped = TRUE + /obj/structure/table/narsie_act() new /obj/structure/table/wood(loc) qdel(src)