init ef_verify: Don't monkey-patch capability VTOL, require it
A plane with capability missile must have capability VTOL. When it's missing, global_init() silently adds it. Drop that. Check for it in ef_verify_config() instead. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
c0c58222bc
commit
a4a25df2f4
2 changed files with 21 additions and 15 deletions
|
@ -41,7 +41,6 @@
|
|||
#include "ship.h"
|
||||
|
||||
static void init_pchr(void);
|
||||
static void init_plchr(void);
|
||||
|
||||
void
|
||||
global_init(void)
|
||||
|
@ -49,20 +48,6 @@ global_init(void)
|
|||
if (opt_RAILWAYS)
|
||||
intrchr[INT_RAIL].in_enable = 0;
|
||||
init_pchr();
|
||||
init_plchr();
|
||||
}
|
||||
|
||||
static void
|
||||
init_plchr(void)
|
||||
{
|
||||
struct plchrstr *pp;
|
||||
|
||||
for (pp = plchr; pp->pl_name; pp++) {
|
||||
if (!pp->pl_name[0])
|
||||
continue;
|
||||
if (pp->pl_flags & P_M)
|
||||
pp->pl_flags |= P_V;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue