aboutsummaryrefslogtreecommitdiff
path: root/fns.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-10-07 22:33:25 +0000
committerrodri <rgl@antares-labs.eu>2023-10-07 22:33:25 +0000
commit71c2cd61f6e53a455140f5920cff88cdfd4b4d33 (patch)
tree14983dd6f41f359cbe143dd3dc2bb55691037e99 /fns.h
parentc5ca61912a88aeb8ae727c0d217b7dc41efeb00d (diff)
downloadbattleship-71c2cd61f6e53a455140f5920cff88cdfd4b4d33.tar.gz
battleship-71c2cd61f6e53a455140f5920cff88cdfd4b4d33.tar.bz2
battleship-71c2cd61f6e53a455140f5920cff88cdfd4b4d33.zip
make cell2coords thread-safe.
Diffstat (limited to 'fns.h')
-rw-r--r--fns.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fns.h b/fns.h
index f8473fd..38aa481 100644
--- a/fns.h
+++ b/fns.h
@@ -12,7 +12,7 @@ Image *eallocimage(Display*, Rectangle, ulong, int, ulong);
* util
*/
int isoob(Point2);
-char *cell2coords(Point2);
+int cell2coords(char*, ulong, Point2);
Point2 coords2cell(char*);
int gettile(Map*, Point2);
void settile(Map*, Point2, int);