From d7ee665774f22450af2b5e64ba3e782fa6848872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=B8rgensen?= Date: Tue, 10 Nov 2020 06:20:21 +0100 Subject: [PATCH] Remove workaround for CPU bug The CPU bug was fixed, see Issue #179 --- c/test_programs/tennis_bot.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/c/test_programs/tennis_bot.c b/c/test_programs/tennis_bot.c index abfc59bf..6c2f0b79 100644 --- a/c/test_programs/tennis_bot.c +++ b/c/test_programs/tennis_bot.c @@ -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 */ @@ -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