diff options
author | rodri <rgl@antares-labs.eu> | 2024-11-11 12:04:56 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-11-11 12:04:56 +0000 |
commit | 1184dc33223639c8f20dfead77b0e6411bc651f7 (patch) | |
tree | 8c5035b4800b6fb132e437df7ea0611ba75beeae /bts.c | |
parent | 8326781658c825bd9f9ba01e651ff7fd3005f54b (diff) | |
download | battleship-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |