From 188e5834dc25b749db69eadcab3130d5ad678118 Mon Sep 17 00:00:00 2001 From: sireus Date: Wed, 12 Dec 2012 18:08:05 +0000 Subject: [PATCH] don't show flag counts in non-team modes (thanks, XFA) git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6972 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/renderhud.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 8febac58..71a6fbf5 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -115,9 +115,9 @@ void drawsgpat(int w, int h) } glColor3ub(255,255,255); glEnd(); - + glDisable(GL_BLEND); - + rgbcv = 32; glBegin(GL_TRIANGLE_STRIP); loopi(8+1) @@ -132,7 +132,7 @@ void drawsgpat(int w, int h) } glColor3ub(255,255,255); glEnd(); - + glEnable(GL_TEXTURE_2D); static Texture *pattex = NULL; if(!pattex) pattex = textureload("packages/misc/sgpat.png", 4); @@ -1069,7 +1069,7 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat popfont(); } - if(m_flags && !hidectfhud) + if(m_flags && m_teammode && !hidectfhud) { glLoadIdentity(); glOrtho(0, VIRTW, VIRTH, 0, -1, 1);