From 1244505327009142c80140e44c86138f4fd6ae07 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Tue, 6 Jun 2017 06:52:46 +0200 Subject: * Implemented aircraft collision. But it would not detect collision in some cases. * Remove unneeded whitespace character on pointer variables (unary operators should not have any whitespaces). * SelectedAircraft index now increases or decreases automatically on aircraft added/removed. * Started writing Plt generation routines. Still a lot of work TODO. --- Source/System.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Source/System.h') diff --git a/Source/System.h b/Source/System.h index dda7c01..2030117 100644 --- a/Source/System.h +++ b/Source/System.h @@ -34,10 +34,10 @@ void SystemSetRandSeed(void); bool SystemRefreshNeeded(void); // Loads a file into system's internal buffer -bool SystemLoadFile(char *fname); +bool SystemLoadFile(char*fname); // Loads a file into desired buffer -bool SystemLoadFileToBuffer(char * fname, uint8_t* buffer, uint32_t szBuffer); +bool SystemLoadFileToBuffer(char* fname, uint8_t* buffer, uint32_t szBuffer); // Clears VSync flag after each frame void SystemDisableScreenRefresh(void); @@ -116,7 +116,7 @@ void SystemCheckStack(void); // Looks for string "str" inside a string array pointed to by "array". // Returns index inside string array on success, -1 if not found. -int32_t SystemIndexOfStringArray(char * str, char ** array); +int32_t SystemIndexOfStringArray(char* str, char** array); // Function overload for uint16_t data type. int32_t SystemIndexOf_U16(uint16_t value, uint16_t* array, uint32_t sz); @@ -126,6 +126,8 @@ int32_t SystemIndexOf_U8(uint8_t value, uint8_t* array, uint32_t from, uint32_t void SystemCyclicHandler(void); +void SystemClearBuffer(void); + /* ************************************** * Global Variables * * **************************************/ -- cgit v1.2.3