-static void
-pln_zap_transient_flags(int may_put)
-{
- int i;
- struct plnstr *pp;
-
- /* 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;
- /* FIXME missile should be destroyed instead */
- if (may_put)
- putplane(i, pp);
- verify_fail(EF_PLANE, i, NULL, 0, "stuck in the air (fixed)");
- }
- }
-}
-