This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The "brains" of my bot for playing the Asteroid game that was part of the | |
* hermatrix.net ARG in July 2021. | |
* | |
* Copyright 2021 Joakim "firetech" Tufvegren | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation | |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- bbswitch-0.8.orig/bbswitch.c | |
+++ bbswitch-0.8/bbswitch.c | |
@@ -238,10 +238,15 @@ static int is_card_disabled(void) { | |
return !~cfg_word; | |
} | |
+static void bbswitch_off_force(void); | |
static void bbswitch_off(void) { | |
if (is_card_disabled()) | |
return; |