From d85464781580796bbcc744ae732e56d1920e3b0f Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Fri, 10 Nov 2017 00:04:35 +0100 Subject: 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. --- System.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'System.h') 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); -- cgit v1.2.3