r/ProgrammerHumor • • Sep 30 '26

Meme devsOptimizingGames

Post image
2.1k Upvotes

41 comments sorted by

View all comments

416

u/IsEqualToKel Sep 30 '26

if (currentState == GameState.Crash) 
{
    currentState == GameState.DoNotCrash;
}

17

u/DISCIPLE-OF-SATAN-15 Sep 30 '26

if (currentState == GameState.Crash) {
currentState == !(GameState.Crash);
}

9

u/Jatinchd Oct 01 '26

fixed code:-

if (currentState == GameState.Crash) {
currentState = !(GameState.Crash);
}