summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-23 17:37:26 +0000
committertruelight <truelight@openttd.org>2004-12-23 17:37:26 +0000
commit824d73be2d438cf0ce5205bbc2d9144899b19d90 (patch)
tree58714b88a827433fe0f108fda19afc593185fdea /misc.c
parente480efb19dc73986721591676580eb1a2296aec3 (diff)
downloadopenttd-824d73be2d438cf0ce5205bbc2d9144899b19d90.tar.xz
(svn r1252) -Add: [Network] With 'set restart_game_date' you can set the date for in
which year the server must restart hisself. (0 = disabled, default value)
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index dcb18656d..34ad3bfac 100644
--- a/misc.c
+++ b/misc.c
@@ -129,7 +129,7 @@ void CSleep(int milliseconds)
#ifdef __BEOS__
snooze(milliseconds * 1000);
#endif
- #if defined(__AMIGA__)
+ #if defined(__AMIGA__)
{
ULONG signals;
ULONG TimerSigBit = 1 << TimerPort->mp_SigBit;
@@ -145,7 +145,7 @@ void CSleep(int milliseconds)
}
WaitIO((struct IORequest *)TimerRequest);
}
- #endif // __AMIGA__
+ #endif // __AMIGA__
#endif
}
@@ -690,6 +690,10 @@ void IncreaseDate()
RoadVehiclesYearlyLoop();
AircraftYearlyLoop();
ShipsYearlyLoop();
+#ifdef ENABLE_NETWORK
+ if (_network_server)
+ NetworkServerYearlyLoop();
+#endif /* ENABLE_NETWORK */
/* check if we reached 2090, that's the maximum year. */
if (_cur_year == 171) {