]> git.pond.sub.org Git - empserver/commitdiff
Make option RAILWAYS disable rail infrastructure
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Apr 2011 09:16:01 +0000 (11:16 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Apr 2011 15:52:31 +0000 (17:52 +0200)
Rail infrastructure isn't used with RAILWAYS.  Disable, to make the
improve command reject it.

src/lib/global/init.c

index ba4dfe09156038be71b0e921e46d2a8272bbee47..e052960771c6a1b74b1bf7a6b499395d313e322e 100644 (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();