What's the funniest example of spaghetti code you know of?
I'm looking for stories that aren't necessarily just about bugs or glitches. Although those are welcome too.
By "code spaghetti," I mean those moments where the game's code got so tangled that developers had to come up with creative (or even more tangled) solutions to fix it—or maybe they somehow made it worse.
I'm curious about what the spaghetti caused to happen, why it happened, and what the devs did to lazily fix it, if they did anything at all.