diff options
| author | Alfred Eriksson <somerunce@gmail.com> | 2009-01-11 10:40:14 +0000 |
|---|---|---|
| committer | Alfred Eriksson <somerunce@gmail.com> | 2009-01-11 10:40:14 +0000 |
| commit | 39a12060d68b1a5169d643a8c6f56df3d82ac4c1 (patch) | |
| tree | bb104b9b446a00687e533924b5765ff3918780cc /src/game/client/components/menus.cpp | |
| parent | 371e8623161095b8f74d51d37f3de368b5cd584c (diff) | |
| download | zcatch-39a12060d68b1a5169d643a8c6f56df3d82ac4c1.tar.gz zcatch-39a12060d68b1a5169d643a8c6f56df3d82ac4c1.zip | |
removed the tuning filtering and warning. modded servers can use tuning for free. added pure server checking - ctf, dm and tdm gametypes are not allowed to have different tuning.
Diffstat (limited to 'src/game/client/components/menus.cpp')
| -rw-r--r-- | src/game/client/components/menus.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 4fb652d9..3122a3bd 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -761,6 +761,13 @@ int MENUS::render() button_text = "Ok"; extra_align = -1; } + else if(popup == POPUP_PURE) + { + title = "Disconnected"; + extra_text = "The server is running a non-standard tuning on a pure game mode."; + button_text = "Ok"; + extra_align = -1; + } else if(popup == POPUP_PASSWORD) { title = "Password Error"; @@ -996,6 +1003,13 @@ void MENUS::on_render() render_demoplayer(screen); } + if(client_state() == CLIENTSTATE_ONLINE && gameclient.servermode == gameclient.SERVERMODE_PUREMOD) + { + client_disconnect(); + set_active(true); + popup = POPUP_PURE; + } + if(!is_active()) { escape_pressed = false; @@ -1003,7 +1017,7 @@ void MENUS::on_render() num_inputevents = 0; return; } - + // update colors vec3 rgb = hsl_to_rgb(vec3(config.ui_color_hue/255.0f, config.ui_color_sat/255.0f, config.ui_color_lht/255.0f)); gui_color = vec4(rgb.r, rgb.g, rgb.b, config.ui_color_alpha/255.0f); |