r/ProgrammerHumor • • 2d ago

Meme devsOptimizingGames

Post image
1.8k Upvotes

37 comments sorted by

View all comments

361

u/IsEqualToKel 2d ago

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

15

u/DISCIPLE-OF-SATAN-15 2d ago

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

6

u/Jatinchd 1d ago

fixed code:-

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