From 3bb872e7dd8ec9318cd60bb9ca417b4d80f8fc34 Mon Sep 17 00:00:00 2001 From: yexo Date: Wed, 25 Feb 2009 00:45:52 +0000 Subject: (svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum. --- src/video/dedicated_v.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/video') 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); } } -- cgit v1.2.3-54-g00ecf