Fixes the flipped table spawners (#90518)

## About The Pull Request

They weren't actually working turns out. There was a race condition with
icon smoothing, so it needs to be flipped after the table gets smoothed.
On top of that the dir wasn't being passed properly.

## Why It's Good For The Game

Stuff that actually works!

This will allow for things like this on mapload:


![image](https://github.com/user-attachments/assets/372297d7-2a30-4d85-8e89-91d14fd584d7)


## Changelog

🆑
fix: fixes flipped table spawners not initializing correctly
/🆑
This commit is contained in:
Bloop
2025-04-09 22:36:28 -06:00
committed by GitHub
parent 0d557b196c
commit 901d562e4d
2 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -78,7 +78,7 @@
ADD_TRAIT(src, TRAIT_COMBAT_MODE_SKIP_INTERACTION, INNATE_TRAIT)
if(can_flip && is_flipped)
flip_table()
flip_table(dir)
return
make_climbable()
@@ -121,7 +121,7 @@
is_flipped = FALSE
//proc that removes elements present in now-flipped tables
/obj/structure/table/proc/flip_table(new_dir)
/obj/structure/table/proc/flip_table(new_dir = SOUTH)
playsound(src, 'sound/items/trayhit/trayhit1.ogg', 100)
RemoveElement(/datum/element/climbable)
RemoveElement(/datum/element/footstep_override, priority = STEP_SOUND_TABLE_PRIORITY)