From 8d2e08d7448e6c3514a747c0dff5db5f27eb8788 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Wed, 24 May 2017 07:15:38 +0200 Subject: * Aircraft state was not being transferred ciclically from Game to Aircraft module. * Improved detection of target reaching for Aircraft.c. * Cursor is now displayed correctly on both 1-player and 2-player mode. * Fixed behaviour for locking/unlocking aircraft. * Fixed menus for 2-player mode. * Minor fixes and improvements. --- Source/System.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Source/System.c') diff --git a/Source/System.c b/Source/System.c index 6eeaf15..8005fa8 100644 --- a/Source/System.c +++ b/Source/System.c @@ -269,7 +269,7 @@ void SystemCheckTimer(bool * timer, uint64_t * last_timer, uint8_t step) } } -bool SystemLoadFileToBuffer(char * fname, uint8_t * buffer, uint32_t szBuffer) +bool SystemLoadFileToBuffer(char * fname, uint8_t* buffer, uint32_t szBuffer) { FILE *f; int32_t size; @@ -329,7 +329,7 @@ bool SystemLoadFile(char *fname) return SystemLoadFileToBuffer(fname,file_buffer,sizeof(file_buffer)); } -uint8_t * SystemGetBufferAddress(void) +uint8_t* SystemGetBufferAddress(void) { return file_buffer; } @@ -361,7 +361,7 @@ volatile bool SystemIsBusy(void) return system_busy; } -bool SystemContains_u8(uint8_t value, uint8_t * buffer, size_t sz) +bool SystemContains_u8(uint8_t value, uint8_t* buffer, size_t sz) { size_t i = 0; @@ -376,7 +376,7 @@ bool SystemContains_u8(uint8_t value, uint8_t * buffer, size_t sz) return false; } -bool SystemContains_u16(uint16_t value, uint16_t * buffer, size_t sz) +bool SystemContains_u16(uint16_t value, uint16_t* buffer, size_t sz) { size_t i = 0; @@ -567,7 +567,7 @@ int32_t SystemIndexOfStringArray(char * str, char ** array) return -1; } -int32_t SystemIndexOf_U16(uint16_t value, uint16_t * array, uint32_t sz) +int32_t SystemIndexOf_U16(uint16_t value, uint16_t* array, uint32_t sz) { int32_t i; @@ -582,7 +582,7 @@ int32_t SystemIndexOf_U16(uint16_t value, uint16_t * array, uint32_t sz) return -1; } -int32_t SystemIndexOf_U8(uint8_t value, uint8_t * array, uint32_t from, uint32_t sz) +int32_t SystemIndexOf_U8(uint8_t value, uint8_t* array, uint32_t from, uint32_t sz) { int32_t i; -- cgit v1.2.3