diff options
author | rodri <rgl@antares-labs.eu> | 2023-09-17 22:06:16 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-09-17 22:06:16 +0000 |
commit | a99916512365d68d130c7dfdb3f7ac5e2e0bbe8a (patch) | |
tree | 62c329d7bb55ab66b11a206810001c34544015e1 /btsd.c | |
parent | 107b6625f07a2114e94d09e0ab4d825cb93740eb (diff) | |
download | battleship-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |