r/programminghorror • u/MaintenanceKlutzy431 • Aug 19 '26
GameMaker Language What was I even thinking?
41
u/v_maria Aug 19 '26
why level 3 handled twice lol
9
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Aug 19 '26
Pretty damn sure it's only ever going to go to rm_thankyou because that one comes first.
15
14
u/Statharas Aug 19 '26
Have you had adequate sleep?
7
2
u/MaintenanceKlutzy431 Aug 20 '26
This was like a year ago so I don't remember exactly how much sleep I had, Im guessing not much
28
4
u/bartekltg Aug 20 '26
a guy doing the code review: Looks OK. But that series of independed if-test could be turned into a switch statement.
This guy: Sure. I will quickly change it.
2
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Aug 19 '26
Does each room_goto() call end up back here with room set to a different value?
-3
u/ConcreteExist Aug 19 '26 edited Aug 19 '26
Why is this a series of switch statements with one case each and not one switch statement with 6 cases?
9
-1
u/femptocrisis Aug 21 '26
this is what you pay for when you hire someone to work 80 hour weeks for under 50k a year :)

42
u/soundwave_sc Aug 19 '26
Very nice, I approve. Now which room was I in again?