aboutsummaryrefslogtreecommitdiff
path: root/fns.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-09-28 17:18:54 +0000
committerrodri <rgl@antares-labs.eu>2023-09-28 17:18:54 +0000
commit2834b114cfe13279b5742649cc655506c53dde8c (patch)
tree1119cbde5c64c09b311b27f25ab470dbd176044c /fns.h
parent786f41cb2f7787933a0f939a221728b844776702 (diff)
downloadbattleship-2834b114cfe13279b5742649cc655506c53dde8c.tar.gz
battleship-2834b114cfe13279b5742649cc655506c53dde8c.tar.bz2
battleship-2834b114cfe13279b5742649cc655506c53dde8c.zip
added a border to the boards and corrected a bug when placing a ship.
the bug allowed the player to move the ship when the cursor was outside the board in the negative side of its rframe. by using floor(2) instead of a cast to int the problem is over.
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 58ba86e..eb9c5ba 100644
--- a/fns.h
+++ b/fns.h
@@ -21,8 +21,8 @@ int countshipcells(Map*);
int shiplen(int);
char *shipname(int);
char *statename(int);
-int max(int, int);
int min(int, int);
+int max(int, int);
int bitpackmap(uchar*, ulong, Map*);
int bitunpackmap(Map*, uchar*, ulong);
int chanvprint(Channel*, char*, va_list);