]> git.pond.sub.org Git - empserver/commitdiff
(prod_plane): Simplify test for moving satellite.
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 14 May 2006 17:40:00 +0000 (17:40 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 14 May 2006 17:40:00 +0000 (17:40 +0000)
src/lib/update/plane.c

index 9553953ddb8da85d0aeebf99e5f967c115df4811..4d685c5c264c1a689fcdd39dc1b41152b7282491 100644 (file)
@@ -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;
        }