From 85c8d7bd82cb186b0791277537498f7eb434d310 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 29 May 2006 21:20:09 +0000 Subject: [PATCH] Fix the previous revision. --- src/lib/update/land.c | 3 ++- src/lib/update/plane.c | 3 ++- src/lib/update/ship.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/update/land.c b/src/lib/update/land.c index e664e36f..e093c6d3 100644 --- a/src/lib/update/land.c +++ b/src/lib/update/land.c @@ -134,7 +134,8 @@ upd_land(struct lndstr *lp, int etus, if (build == 1) { if (!lp->lnd_off && np->nat_money >= 0) landrepair(lp, np, bp, etus); - lp->lnd_off = 0; + if (!player->simulation) + lp->lnd_off = 0; } else { mult = 1; if (np->nat_level[NAT_TLEV] < lp->lnd_tech * 0.85) diff --git a/src/lib/update/plane.c b/src/lib/update/plane.c index a0556162..a155e7bd 100644 --- a/src/lib/update/plane.c +++ b/src/lib/update/plane.c @@ -104,7 +104,8 @@ upd_plane(struct plnstr *pp, int etus, if (build == 1) { if (!pp->pln_off && np->nat_money >= 0) planerepair(pp, np, bp, etus); - pp->pln_off = 0; + if (!player->simulation) + pp->pln_off = 0; } else { mult = 1; if (np->nat_level[NAT_TLEV] < pp->pln_tech * 0.85) diff --git a/src/lib/update/ship.c b/src/lib/update/ship.c index 18518b3a..6e018ef7 100644 --- a/src/lib/update/ship.c +++ b/src/lib/update/ship.c @@ -138,7 +138,8 @@ upd_ship(struct shpstr *sp, int etus, if (build == 1) { if (!sp->shp_off && np->nat_money >= 0) shiprepair(sp, np, bp, etus); - sp->shp_off = 0; + if (!player->simulation) + sp->shp_off = 0; } else { mult = 1; if (np->nat_level[NAT_TLEV] < sp->shp_tech * 0.85)