summaryrefslogtreecommitdiff
path: root/video/dedicated_v.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-29 16:40:29 +0000
committertron <tron@openttd.org>2005-07-29 16:40:29 +0000
commitf359d1a39470eae65f4a4069b347d8e60a639682 (patch)
treea1e843572836c42daea97f267db294b298f0de37 /video/dedicated_v.c
parent1a5de9ff9b7af53f9f8306c6a354aaa87779805d (diff)
downloadopenttd-f359d1a39470eae65f4a4069b347d8e60a639682.tar.xz
(svn r2748) Remove unused cruft from the main loop
Diffstat (limited to 'video/dedicated_v.c')
-rw-r--r--video/dedicated_v.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/video/dedicated_v.c b/video/dedicated_v.c
index e15922e0c..f5fb9be0e 100644
--- a/video/dedicated_v.c
+++ b/video/dedicated_v.c
@@ -215,7 +215,7 @@ static void DedicatedHandleKeyInput(void)
IConsoleCmdExec(input_line); // execute command
}
-static int DedicatedVideoMainLoop(void)
+static void DedicatedVideoMainLoop(void)
{
uint32 next_tick;
uint32 cur_ticks;
@@ -257,14 +257,12 @@ static int DedicatedVideoMainLoop(void)
if (!_networking) {
DEBUG(net, 1)("Dedicated server could not be launched. Aborting.");
- return ML_QUIT;
+ return;
}
- while (true) {
+ while (!_exit_game) {
InteractiveRandom(); // randomness
- if (_exit_game) return ML_QUIT;
-
if (!_dedicated_forks)
DedicatedHandleKeyInput();