1
0
forked from 0ad/0ad

Disable wireframe mode in ranked games. Fixes #2401.

This was SVN commit r15050.
This commit is contained in:
JoshuaJB 2014-04-28 05:02:20 +00:00
parent da7526dbd4
commit 3014df2280

View File

@ -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);