From 8760478c61d8b96d9aab1511b8759daeb84378c5 Mon Sep 17 00:00:00 2001 From: rodri Date: Wed, 27 Sep 2023 15:59:53 +0000 Subject: implemented spectator mode. --- dat.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'dat.h') diff --git a/dat.h b/dat.h index bef3596..f53caf9 100644 --- a/dat.h +++ b/dat.h @@ -34,7 +34,7 @@ enum { SCRH = Boardmargin+MAPH*TH+TH+MAPH*TH+Boardmargin, KB = 1024, - BY2MAP = TBITS*MAPW*MAPH/8+1, + BY2MAP = (TBITS*MAPW*MAPH+7)/8, }; typedef struct Ship Ship; @@ -114,8 +114,12 @@ struct Stands struct MatchInfo { int id; - char *pl[2]; + struct { + char uid[8+1]; + int state; + } pl[2]; Board *bl[2]; + char conclusion[16]; }; typedef struct Mentry Mentry; -- cgit v1.2.3