/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* work.c: Implementation of the work command
- *
+ *
* Known contributors to this file:
* Markus Armbruster, 2008
*/
}
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));