From 2834b114cfe13279b5742649cc655506c53dde8c Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 28 Sep 2023 17:18:54 +0000 Subject: 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. --- fns.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fns.h') 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); -- cgit v1.2.3