diff options
author | yexo <yexo@openttd.org> | 2009-02-25 00:45:52 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-02-25 00:45:52 +0000 |
commit | 3bb872e7dd8ec9318cd60bb9ca417b4d80f8fc34 (patch) | |
tree | 0821775e819b64e32e518cdd87b874fb720c4d92 /src/video | |
parent | 901230bde1b0752d97d63aabaa0fd38c9ea183e7 (diff) | |
download | openttd-3bb872e7dd8ec9318cd60bb9ca417b4d80f8fc34.tar.xz |
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/dedicated_v.cpp | 6 |
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); } } |