From 39a12060d68b1a5169d643a8c6f56df3d82ac4c1 Mon Sep 17 00:00:00 2001 From: Alfred Eriksson Date: Sun, 11 Jan 2009 10:40:14 +0000 Subject: 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. --- src/game/client/components/menus.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/game/client/components/menus.cpp') 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); -- cgit 1.4.1