]> git.pond.sub.org Git - empserver/commitdiff
Don't fix up dead planes stuck in the air
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 10 Jul 2008 23:35:51 +0000 (19:35 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 Jul 2008 14:43:03 +0000 (10:43 -0400)
Missile interdiction leaves behind used up missiles with the
PLN_LAUNCHED flag set.  This can lead to a bogus warning from
pln_zap_transient_flags() on server restart.

Change pln_zap_transient_flags() to ignore dead planes.

src/lib/common/ef_verify.c

index dc3c2e4c86d0286727a3aa4d3fd39ab917b377cd..ad96ee62a0df090f8951acb1427cfd875135288e 100644 (file)
@@ -192,6 +192,8 @@ pln_zap_transient_flags(void)
 
     /* laziness: assumes plane file is EFF_MEM */
     for (i = 0; (pp = getplanep(i)) != NULL; i++) {
+       if (!pp->pln_own)
+           continue;
        if (pp->pln_flags & PLN_LAUNCHED
            && (plchr[pp->pln_type].pl_flags & (P_M | P_O)) != P_O) {
            pp->pln_flags &= ~PLN_LAUNCHED;