From 64159844673948ff19b1d7666ca6c0e7a573aaf5 Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 18 May 2008 18:26:08 +0000 Subject: [PATCH] disable hud if spectating online (not demo) git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2043 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/renderhud.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index f1177ee0..e9700fb9 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -504,7 +504,8 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat glLoadIdentity(); glOrtho(0, VIRTW/2, VIRTH/2, 0, -1, 1); - if(!hidehudequipment) + bool onlinespectating = spectating && multiplayer(false); + if(!hidehudequipment && !onlinespectating) { draw_textf("%d", 90, 827, p->health); if(p->armour) draw_textf("%d", 390, 827, p->armour);