From 564d5aa7d28f10ede9f446450b98dbc585c32ea5 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Tue, 14 Oct 2008 21:53:40 +0000 Subject: [PATCH] don't show radar in edit mode git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3022 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/renderhud.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index d7b5853c..e5331906 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -484,10 +484,13 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat if(p->state==CS_ALIVE && !hidehudequipment) drawequipicons(p); - glMatrixMode(GL_MODELVIEW); - if(/*!menu &&*/ (!hideradar || showmap)) drawradar(p, w, h); - if(!hideteam && m_teammode) drawteamicons(w, h); - glMatrixMode(GL_PROJECTION); + if(!editmode) + { + glMatrixMode(GL_MODELVIEW); + if(/*!menu &&*/ (!hideradar || showmap)) drawradar(p, w, h); + if(!hideteam && m_teammode) drawteamicons(w, h); + glMatrixMode(GL_PROJECTION); + } char *infostr = editinfo(); int commandh = 1570 + FONTH;