From 7a06a58bec0435a66a682269397193d8d17461de Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 10 Jul 2008 19:35:51 -0400 Subject: [PATCH] Don't fix up dead planes stuck in the air 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/common/ef_verify.c b/src/lib/common/ef_verify.c index dc3c2e4c..ad96ee62 100644 --- a/src/lib/common/ef_verify.c +++ b/src/lib/common/ef_verify.c @@ -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;