From 3014df2280ca43db822e56a9247d535658d5ea45 Mon Sep 17 00:00:00 2001 From: JoshuaJB Date: Mon, 28 Apr 2014 05:02:20 +0000 Subject: [PATCH] Disable wireframe mode in ranked games. Fixes #2401. This was SVN commit r15050. --- source/graphics/GameView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/graphics/GameView.cpp b/source/graphics/GameView.cpp index c1464da1db..dcd80a0705 100644 --- a/source/graphics/GameView.cpp +++ b/source/graphics/GameView.cpp @@ -58,6 +58,7 @@ #include "simulation2/Simulation2.h" #include "simulation2/components/ICmpPosition.h" #include "simulation2/components/ICmpRangeManager.h" +#include "lobby/IXmppClient.h" extern int g_xres, g_yres; @@ -1132,7 +1133,9 @@ InReaction CGameView::HandleEvent(const SDL_Event_* ev) if (hotkey == "wireframe") { - if (g_Renderer.GetModelRenderMode() == SOLID) + if (g_XmppClient && g_rankedGame == true) + break; + else if (g_Renderer.GetModelRenderMode() == SOLID) { g_Renderer.SetTerrainRenderMode(EDGED_FACES); g_Renderer.SetModelRenderMode(EDGED_FACES);