#if defined(_WIN32)
#include <winsock.h>
+#include <process.h>
#endif
#include "misc.h"
static void loc_NTTerm(void);
#endif
-#if !defined(_WIN32)
static int mainpid = 0;
-#endif
/*
* Debugging?
loginit("server");
-#if !defined(_WIN32)
mainpid = getpid();
+#if !defined(_WIN32)
while ((op = getopt(argc, argv, "D:de:psh")) != EOF) {
switch (op) {
}
logerror("------------------------------------------------------");
-#if !defined(_WIN32)
logerror("Empire server (pid %d) started", getpid());
-#else
- logerror("Empire server started");
-#endif /* _WIN32 */
#if defined(_WIN32)
loc_NTInit();
dchr[SCT_CAPIT].d_hcms = bigcity_dchr.d_hcms;
dchr[SCT_CAPIT].d_name = bigcity_dchr.d_name;
}
- if (opt_NO_LCMS)\r
- dchr[SCT_LIGHT].d_cost = -1;\r
- if (opt_NO_HCMS)\r
- dchr[SCT_HEAVY].d_cost = -1;\r
- if (opt_NO_OIL) {\r
- dchr[SCT_OIL].d_cost = -1;\r
- dchr[SCT_REFINE].d_cost = -1;\r
+ if (opt_NO_LCMS)
+ dchr[SCT_LIGHT].d_cost = -1;
+ if (opt_NO_HCMS)
+ dchr[SCT_HEAVY].d_cost = -1;
+ if (opt_NO_OIL) {
+ dchr[SCT_OIL].d_cost = -1;
+ dchr[SCT_REFINE].d_cost = -1;
}
for (i = 0; i < pln_maxno; i++) {
if (opt_NO_HCMS)