Fix work not to claim an engineer worked when it didn't
This commit is contained in:
parent
063a7d9988
commit
e628c50b21
1 changed files with 5 additions and 0 deletions
|
@ -87,6 +87,11 @@ work(void)
|
|||
}
|
||||
cost = 0.0;
|
||||
w = buildeff(§, w, &cost);
|
||||
if (w == 0) {
|
||||
pr("%s can't change efficiency in %s\n",
|
||||
prland(&land), xyas(land.lnd_x, land.lnd_y, player->cnum));
|
||||
continue;
|
||||
}
|
||||
if (player->dolcost + cost > natp->nat_money) {
|
||||
pr("You can't afford to work that much in %s!\n",
|
||||
xyas(land.lnd_x, land.lnd_y, player->cnum));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue