aboutsummaryrefslogtreecommitdiff
path: root/Source/System.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-05-24 07:15:38 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-05-24 07:15:38 +0200
commit8d2e08d7448e6c3514a747c0dff5db5f27eb8788 (patch)
treef34b60609315c450ccc5a4f3a65fb29877386ad4 /Source/System.c
parentaefe5f8c1c45f4cdeafe08113953a9f03df3c644 (diff)
* 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.
Diffstat (limited to 'Source/System.c')
-rw-r--r--Source/System.c12
1 files changed, 6 insertions, 6 deletions
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;