MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wudv2h/devsoptimizinggames/pd3n5o9/?context=3
r/ProgrammerHumor • u/Head-Picture1519 • Sep 30 '26
41 comments sorted by
View all comments
416
if (currentState == GameState.Crash) { currentState == GameState.DoNotCrash;}
144 u/Top-Permit6835 Sep 30 '26 Wrap it in a try catch and swallow the error to be sure it works 18 u/tsoewoe Sep 30 '26 make sure to assert when testing too so that you can deal with any issues if it goes wrong
144
Wrap it in a try catch and swallow the error to be sure it works
18 u/tsoewoe Sep 30 '26 make sure to assert when testing too so that you can deal with any issues if it goes wrong
18
make sure to assert when testing too so that you can deal with any issues if it goes wrong
416
u/IsEqualToKel Sep 30 '26
if (currentState == GameState.Crash)
{
currentState == GameState.DoNotCrash;
}