subs: Make correctness of some wu() uses more obvious

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2015-01-11 14:12:37 +01:00
parent 7be7ad98aa
commit 3aa088bb1c
2 changed files with 11 additions and 13 deletions

View file

@ -362,18 +362,17 @@ intelligence_report(natid destination, struct lndstr *lp, int spy,
int t;
t = lp->lnd_tech - 20 + roll(40);
t = MAX(t, 0);
sprintf(buf3, ", tech %d)\n", t);
sprintf(buf3, ", tech %d)", t);
} else {
sprintf(buf3, ")\n");
sprintf(buf3, ")");
}
} else {
sprintf(buf2, "\n");
buf3[0] = 0;
buf2[0] = buf3[0] = 0;
}
if (destination == player->cnum)
pr("%s%s%s", buf1, buf2, buf3);
else
wu(0, destination, "%s%s%s", buf1, buf2, buf3);
wu(0, destination, "%s%s%s\n", buf1, buf2, buf3);
}
}