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
This commit is contained in:
driAn
2008-05-18 18:26:08 +00:00
parent b6fec07e9a
commit 6415984467
+2 -1
View File
@@ -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);