summaryrefslogtreecommitdiff
path: root/System.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-11-10 00:04:35 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2017-11-10 00:04:35 +0100
commitd85464781580796bbcc744ae732e56d1920e3b0f (patch)
treeac0939ebae1e1fe9afb8060ad2329c52bcab00ad /System.h
parent7b05778e3ef8ef01a4bb15a6ed6fde5b329a8c9b (diff)
downloadpocketempires-d85464781580796bbcc744ae732e56d1920e3b0f.tar.gz
Kinda improved pathfinding algorithm. Still some work TODO.
Fixed some errors in DEBUG_VAR macro. Shadows are now drawn before any other object. Different strings are now shown depending on the number of selected units. Some work on calculating actions mask when different types of units are selected. Still some work TODO.
Diffstat (limited to 'System.h')
-rw-r--r--System.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/System.h b/System.h
index b2d5f5e..71d6987 100644
--- a/System.h
+++ b/System.h
@@ -86,7 +86,8 @@ bool SystemArrayCompare(unsigned short * arr1, unsigned short * arr2, size_t sz)
// Checks collision of two objects
bool SystemCollisionCheck(TYPE_COLLISION_BLOCK* c1, TYPE_COLLISION_BLOCK* c2);
// Transforms integer to string. Use this instead of sprintf() as much as possible.
-bool Systemitoa(char* str, size_t sz, int16_t value);
+// Returns the number of bytes written into "str". In case of error, 0 is returned.
+size_t Systemitoa(char* str, size_t sz, int16_t value);
// Return hypothenuse of two points
uint32_t SystemGetHyp(uint16_t x, uint16_t y);