Skip to content

Commit

Permalink
Remove workaround for CPU bug
Browse files Browse the repository at this point in the history
The CPU bug was fixed, see Issue #179
  • Loading branch information
MJoergen committed Nov 10, 2020
1 parent b150b08 commit d7ee665
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions c/test_programs/tennis_bot.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ void bot_draw()
} // end of bot_draw


int prevent_possible_compiler_bug = 0;

/*
* This function is called once per frame, i.e. 60 times a second
*/
Expand Down Expand Up @@ -87,8 +85,5 @@ void bot_update()
{
bot_position.x = POS_SCALE * (BAR_RIGHT + BOT_RADIUS);
}

/* Without this line, the program crashes when the last if-branch above is taken */
++prevent_possible_compiler_bug;
} // end of bot_update

0 comments on commit d7ee665

Please sign in to comment.