summaryrefslogtreecommitdiff
path: root/network_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'network_server.c')
-rw-r--r--network_server.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/network_server.c b/network_server.c
index 1144840dd..9a3c64930 100644
--- a/network_server.c
+++ b/network_server.c
@@ -21,6 +21,7 @@
#include "vehicle.h"
#include "station.h"
#include "variables.h"
+#include "genworld.h"
// This file handles all the server-commands
@@ -1308,18 +1309,13 @@ void NetworkUpdateClientInfo(uint16 client_index)
}
}
-extern void SwitchMode(int new_mode);
-
/* Check if we want to restart the map */
static void NetworkCheckRestartMap(void)
{
if (_network_restart_game_year != 0 && _cur_year >= _network_restart_game_year) {
DEBUG(net, 0)("Auto-restarting map. Year %d reached.", _cur_year);
- _random_seeds[0][0] = Random();
- _random_seeds[0][1] = InteractiveRandom();
-
- SwitchMode(SM_NEWGAME);
+ StartNewGameWithoutGUI(GENERATE_NEW_SEED);
}
}