From 85e7e3c9d4ec9ba2b2b14217c089e0137b45034f Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 14 May 2006 17:40:00 +0000 Subject: [PATCH] (prod_plane): Simplify test for moving satellite. --- src/lib/update/plane.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/lib/update/plane.c b/src/lib/update/plane.c index 9553953d..4d685c5c 100644 --- a/src/lib/update/plane.c +++ b/src/lib/update/plane.c @@ -90,15 +90,11 @@ prod_plane(int etus, int natnum, int *bp, int buildem) } plp = &plchr[(int)pp->pln_type]; + if (pp->pln_flags & PLN_LAUNCHED) { - if (buildem == 0) { - if ((!player->simulation) && - (plp->pl_flags & P_O) && - (pp->pln_flags & PLN_LAUNCHED) && - !(plp->pl_flags & P_M) && - !(pp->pln_flags & PLN_SYNCHRONOUS)) - move_sat(pp); - } + if (!player->simulation && buildem == 0 + && !(pp->pln_flags & PLN_SYNCHRONOUS)) + move_sat(pp); continue; }