aboutsummaryrefslogtreecommitdiff
path: root/btsd.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-09-17 22:06:16 +0000
committerrodri <rgl@antares-labs.eu>2023-09-17 22:06:16 +0000
commita99916512365d68d130c7dfdb3f7ac5e2e0bbe8a (patch)
tree62c329d7bb55ab66b11a206810001c34544015e1 /btsd.c
parent107b6625f07a2114e94d09e0ab4d825cb93740eb (diff)
downloadbattleship-a99916512365d68d130c7dfdb3f7ac5e2e0bbe8a.tar.gz
battleship-a99916512365d68d130c7dfdb3f7ac5e2e0bbe8a.tar.bz2
battleship-a99916512365d68d130c7dfdb3f7ac5e2e0bbe8a.zip
initial work on a menu of matches.
also made some corrections and changed the tokenize(2) fields identifiers from cmd[] to f[].
Diffstat (limited to 'btsd.c')
-rw-r--r--btsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/btsd.c b/btsd.c
index 8478b9d..c2a18bf 100644
--- a/btsd.c
+++ b/btsd.c
@@ -239,7 +239,7 @@ playerproc(void *arg)
else{
chanprint(my->io.out, "matches\n");
for(m = theater.next; m != &theater; m = m->next)
- chanprint(my->io.out, "%d %s vs. %s\n", m->id, m->pl[0]->name, m->pl[1]->name);
+ chanprint(my->io.out, "%d %s %s\n", m->id, m->pl[0]->name, m->pl[1]->name);
chanprint(my->io.out, "end\n");
}
runlock(&theaterlk);
@@ -502,7 +502,7 @@ fprintmatches(int fd)
if(theater.next == &theater)
n += fprint(fd, "let there be peace\n");
else for(n = 0, m = theater.next; m != &theater; m = m->next)
- n += fprint(fd, "%d\t%s vs. %s\n", m->id, m->pl[0]->name, m->pl[1]->name);
+ n += fprint(fd, "%d\t%s vs %s\n", m->id, m->pl[0]->name, m->pl[1]->name);
runlock(&theaterlk);
return n;
}