summaryrefslogtreecommitdiff
path: root/src/video/dedicated_v.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-25 00:45:52 +0000
committeryexo <yexo@openttd.org>2009-02-25 00:45:52 +0000
commit7e818f0456b9e771786db9f7e9706a01e3243cf2 (patch)
tree0821775e819b64e32e518cdd87b874fb720c4d92 /src/video/dedicated_v.cpp
parentbd2544b5ead713fa327536fe577da74e5119db98 (diff)
downloadopenttd-7e818f0456b9e771786db9f7e9706a01e3243cf2.tar.xz
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
Diffstat (limited to 'src/video/dedicated_v.cpp')
-rw-r--r--src/video/dedicated_v.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp
index 7a4e1a406..2a997d9f9 100644
--- a/src/video/dedicated_v.cpp
+++ b/src/video/dedicated_v.cpp
@@ -126,7 +126,7 @@ static void CloseWindowsConsoleThread()
static void *_dedicated_video_mem;
extern bool SafeSaveOrLoad(const char *filename, int mode, GameMode newgm, Subdirectory subdir);
-extern void SwitchMode(int new_mode);
+extern void SwitchToMode(SwitchMode new_mode);
static FVideoDriver_Dedicated iFVideoDriver_Dedicated;
@@ -261,7 +261,7 @@ void VideoDriver_Dedicated::MainLoop()
/* 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);
+ SwitchToMode(_switch_mode);
_switch_mode = SM_NONE;
} else {
_switch_mode = SM_NONE;
@@ -273,7 +273,7 @@ void VideoDriver_Dedicated::MainLoop()
_networking = false;
} else {
/* We can load this game, so go ahead */
- SwitchMode(SM_LOAD);
+ SwitchToMode(SM_LOAD);
}
}