(status): Simplify conditional for the "lost your capital" message.
(player): No uses of member visitor left, remove.
This commit is contained in:
parent
a57645340c
commit
6f1cc795f1
2 changed files with 1 additions and 3 deletions
|
@ -61,7 +61,6 @@ struct player {
|
||||||
int ncomstat;
|
int ncomstat;
|
||||||
int minleft;
|
int minleft;
|
||||||
int btused;
|
int btused;
|
||||||
int visitor;
|
|
||||||
int god;
|
int god;
|
||||||
int owner;
|
int owner;
|
||||||
int nstat;
|
int nstat;
|
||||||
|
|
|
@ -171,7 +171,6 @@ status(void)
|
||||||
putnat(natp);
|
putnat(natp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
player->visitor = natp->nat_stat < STAT_SANCT;
|
|
||||||
if (player->dolcost != 0.0) {
|
if (player->dolcost != 0.0) {
|
||||||
if (player->dolcost > 100.0)
|
if (player->dolcost > 100.0)
|
||||||
pr("That just cost you $%.2f\n", player->dolcost);
|
pr("That just cost you $%.2f\n", player->dolcost);
|
||||||
|
@ -256,7 +255,7 @@ status(void)
|
||||||
numstr(buf, natp->nat_ann));
|
numstr(buf, natp->nat_ann));
|
||||||
natp->nat_ann = 0;
|
natp->nat_ann = 0;
|
||||||
}
|
}
|
||||||
if (!player->visitor && !player->god && (player->nstat & CAP) == 0)
|
if (natp->nat_stat == STAT_ACTIVE && (player->nstat & CAP) == 0)
|
||||||
pr("You lost your capital... better designate one\n");
|
pr("You lost your capital... better designate one\n");
|
||||||
putnat(natp);
|
putnat(natp);
|
||||||
if (gamedown() && !player->god) {
|
if (gamedown() && !player->god) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue