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/network | |
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/network')
-rw-r--r-- | src/network/network_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 364c6f0e3..814ace117 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -30,7 +30,7 @@ static void ShowNetworkStartServerWindow(); static void ShowNetworkLobbyWindow(NetworkGameList *ngl); -extern void SwitchMode(int new_mode); +extern void SwitchToMode(SwitchMode new_mode); static const StringID _connection_types_dropdown[] = { STR_NETWORK_LAN_INTERNET, @@ -1020,7 +1020,7 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow { strecpy(_file_to_saveload.title, this->map->title, lastof(_file_to_saveload.title)); delete this; - SwitchMode(SM_START_SCENARIO); + SwitchToMode(SM_START_SCENARIO); } } break; @@ -1829,7 +1829,7 @@ struct NetworkJoinStatusWindow : Window { { if (widget == 2) { //Disconnect button NetworkDisconnect(); - SwitchMode(SM_MENU); + SwitchToMode(SM_MENU); ShowNetworkGameWindow(); } } |