From 5d72830ec9e35ca3dde58fa4038e774f7608581e Mon Sep 17 00:00:00 2001 From: flowtron Date: Sat, 10 Jul 2010 18:10:30 +0000 Subject: [PATCH] bugfix 2760149 : hide spectator-HUD if menu is open git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5332 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/renderhud.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 138c7ce2..ba419585 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -708,9 +708,9 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat if(dbgpos) { defformatstring(o_x)("pos x %03.1f", player1->o.x); - draw_text(o_x, VIRTW*2 - ( text_width(o_x) + FONTH ), VIRTH*2 - 9*FONTH/2); + draw_text(o_x, VIRTW*2 - ( text_width(o_x) + FONTH ), VIRTH*2 - 9*FONTH/2); defformatstring(o_y)("pos y %03.1f", player1->o.y); - draw_text(o_y, VIRTW*2 - ( text_width(o_y) + FONTH ), VIRTH*2 - 7*FONTH/2); + draw_text(o_y, VIRTW*2 - ( text_width(o_y) + FONTH ), VIRTH*2 - 7*FONTH/2); defformatstring(o_z)("pos z %03.1f", player1->o.z); draw_text(o_z, VIRTW*2 - ( text_width(o_z) + FONTH ), VIRTH*2 - 5*FONTH/2); } @@ -755,7 +755,7 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat if(!hidehudmsgs) hudmsgs.render(); - if(!hidespecthud && p->state==CS_DEAD && p->spectatemode<=SM_DEATHCAM) + if(!hidespecthud && !menu && p->state==CS_DEAD && p->spectatemode<=SM_DEATHCAM) { glLoadIdentity(); glOrtho(0, VIRTW*3/2, VIRTH*3/2, 0, -1, 1);