summaryrefslogtreecommitdiff
path: root/video/dedicated_v.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/dedicated_v.c')
-rw-r--r--video/dedicated_v.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/dedicated_v.c b/video/dedicated_v.c
index 3c367efe9..953368f99 100644
--- a/video/dedicated_v.c
+++ b/video/dedicated_v.c
@@ -12,6 +12,7 @@
#include "../window.h"
#include "../console.h"
#include "../variables.h"
+#include "../genworld.h"
#include "dedicated_v.h"
#ifdef BEOS_NET_SERVER
@@ -240,8 +241,9 @@ static void DedicatedVideoMainLoop(void)
/* If SwitchMode is SM_LOAD, it means that the user used the '-g' options */
if (_switch_mode != SM_LOAD) {
+ StartNewGameWithoutGUI(GENERATE_NEW_SEED);
+ SwitchMode(_switch_mode);
_switch_mode = SM_NONE;
- GenRandomNewGame(Random(), InteractiveRandom());
} else {
_switch_mode = SM_NONE;
/* First we need to test if the savegame can be loaded, else we will end up playing the