From e628c50b21330cb3e39e1357b88680bf315d9ccc Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 3 Aug 2008 17:32:35 -0400 Subject: [PATCH] Fix work not to claim an engineer worked when it didn't --- src/lib/commands/work.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/commands/work.c b/src/lib/commands/work.c index 903717279..c68a1da94 100644 --- a/src/lib/commands/work.c +++ b/src/lib/commands/work.c @@ -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)); -- 2.43.0