aboutsummaryrefslogtreecommitdiff
path: root/bts.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-11-11 12:04:56 +0000
committerrodri <rgl@antares-labs.eu>2024-11-11 12:04:56 +0000
commit1184dc33223639c8f20dfead77b0e6411bc651f7 (patch)
tree8c5035b4800b6fb132e437df7ea0611ba75beeae /bts.c
parent8326781658c825bd9f9ba01e651ff7fd3005f54b (diff)
downloadbattleship-1184dc33223639c8f20dfead77b0e6411bc651f7.tar.gz
battleship-1184dc33223639c8f20dfead77b0e6411bc651f7.tar.bz2
battleship-1184dc33223639c8f20dfead77b0e6411bc651f7.zip
bts: proper board names when watching a match.
Diffstat (limited to 'bts.c')
-rw-r--r--bts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bts.c b/bts.c
index 1641f61..61b78f9 100644
--- a/bts.c
+++ b/bts.c
@@ -388,10 +388,10 @@ drawinfo(Image *dst)
p = Pt(SCRW/2 - stringwidth(font, s)/2, 0);
string(dst, p, pal[PCWhite], ZP, font, s);
- s = "TARGET";
+ s = gamestate == Watching? "PLAYER 1": "TARGET";
p = subpt(alienboard.bbox.min, Pt(font->width+2+Borderwidth,0));
vstring(dst, p, pal[PCWhite], ZP, font, s);
- s = "LOCAL";
+ s = gamestate == Watching? "PLAYER 2": "LOCAL";
p = Pt(localboard.bbox.max.x+2+Borderwidth, localboard.bbox.min.y);
vstring(dst, p, pal[PCWhite], ZP, font, s);