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.
(cherry picked from commit 7a06a58bec
)
This commit is contained in:
parent
84d40a6057
commit
1713f2d303
1 changed files with 2 additions and 0 deletions
|
@ -173,6 +173,8 @@ pln_zap_transient_flags(void)
|
||||||
|
|
||||||
/* laziness: assumes plane file is EFF_MEM */
|
/* laziness: assumes plane file is EFF_MEM */
|
||||||
for (i = 0; (pp = getplanep(i)) != NULL; i++) {
|
for (i = 0; (pp = getplanep(i)) != NULL; i++) {
|
||||||
|
if (!pp->pln_own)
|
||||||
|
continue;
|
||||||
if (pp->pln_flags & PLN_LAUNCHED
|
if (pp->pln_flags & PLN_LAUNCHED
|
||||||
&& (plchr[pp->pln_type].pl_flags & (P_M | P_O)) != P_O) {
|
&& (plchr[pp->pln_type].pl_flags & (P_M | P_O)) != P_O) {
|
||||||
pp->pln_flags &= ~PLN_LAUNCHED;
|
pp->pln_flags &= ~PLN_LAUNCHED;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue