From c445995c1ad40ccb7997cd201e42b9892b1f0eab Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Sun, 16 Dec 2012 14:03:53 +0000 Subject: [PATCH] ktf flag icons fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6979 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/renderhud.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 71a6fbf5..658dc8cb 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -1069,7 +1069,7 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat popfont(); } - if(m_flags && m_teammode && !hidectfhud) + if(m_flags && !hidectfhud) { glLoadIdentity(); glOrtho(0, VIRTW, VIRTH, 0, -1, 1); @@ -1081,10 +1081,13 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat loopi(2) // flag state { drawctficon(i*120+VIRTW/4.0f*3.0f, 1650, 120, i, 0, 1/4.0f, flaginfos[i].state == CTFF_INBASE ? 255 : 100); - defformatstring(count)("%d", flagscores[i]); - int cw, ch; - text_bounds(count, cw, ch); - draw_textf(count, i*120+VIRTW/4.0f*3.0f+60-cw/2, 1590); + if(m_teammode) + { + defformatstring(count)("%d", flagscores[i]); + int cw, ch; + text_bounds(count, cw, ch); + draw_textf(count, i*120+VIRTW/4.0f*3.0f+60-cw/2, 1590); + } } // big flag-stolen icon