Make option RAILWAYS disable rail infrastructure

Rail infrastructure isn't used with RAILWAYS.  Disable, to make the
improve command reject it.
This commit is contained in:
Markus Armbruster 2011-04-17 11:16:01 +02:00
parent 81d80109ed
commit c45a3bb923

View file

@ -37,6 +37,7 @@
#include "plane.h"
#include "product.h"
#include "prototypes.h"
#include "sect.h"
#include "ship.h"
static void init_mchr(void);
@ -46,6 +47,8 @@ static void init_plchr(void);
void
global_init(void)
{
if (opt_RAILWAYS)
intrchr[INT_RAIL].in_enable = 0;
init_pchr();
init_mchr();
init_plchr();