summaryrefslogtreecommitdiff
path: root/src/network
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/network
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/network')
-rw-r--r--src/network/network_gui.cpp6
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();
}
}