]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/plane.c
Remove budget priorities:
[empserver] / src / lib / update / plane.c
index 14413a19eead04283741c8e3171b167dd1197fe9..802669f0f0cfff79fae5cc029bebcdcc574980e3 100644 (file)
@@ -30,6 +30,7 @@
  *  Known contributors to this file:
  *     Dave Pare, 1986
  *     Steve McClure, 1998
+ *     Markus Armbruster, 2006
  */
 
 #include <config.h>
@@ -101,16 +102,14 @@ upd_plane(struct plnstr *pp, int etus,
     int mult, cost, eff;
 
     if (build == 1) {
-       if (np->nat_priorities[PRI_PBUILD] == 0 || np->nat_money < 0)
-           return;
-       planerepair(pp, np, bp, etus);
+       if (np->nat_money >= 0)
+           planerepair(pp, np, bp, etus);
     } else {
        mult = 1;
        if (np->nat_level[NAT_TLEV] < pp->pln_tech * 0.85)
            mult = 2;
        cost = -(mult * etus * MIN(0.0, pcp->pl_cost * money_plane));
-       if ((np->nat_priorities[PRI_PMAINT] == 0 || np->nat_money < cost)
-           && !player->simulation) {
+       if (np->nat_money < cost && !player->simulation) {
            if ((eff = pp->pln_effic - etus / 5) < PLANE_MINEFF) {
                wu(0, pp->pln_own,
                   "%s lost to lack of maintenance\n", prplane(pp));