]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Also remove the stomach splash effect for observers
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 25 Feb 2011 23:19:42 +0000 (01:19 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 25 Feb 2011 23:19:42 +0000 (01:19 +0200)
data/qcsrc/client/View.qc

index 9f517b2094eb5b7731b4ea1971a0114cad536ae1..0b37bef0d349dd267ddc7ab329bee25081f1e7eb 100644 (file)
@@ -607,11 +607,13 @@ void CSQC_UpdateView(float w, float h)
                        else\r
                                stomachsplash_alpha = 0;\r
                }\r
-               if (getstati(STAT_HEALTH) <= 0)\r
+               if(getstati(STAT_HEALTH) <= 0)\r
                        stomachsplash_remove_at_respawn = 1; // schedule the effect to be removed next respawn\r
 \r
                if(getstati(STAT_HEALTH) > 0 && stomachsplash_remove_at_respawn)\r
                        stomachsplash_alpha = stomachsplash_remove_at_respawn = 0; // we respawned, remove the effect\r
+               if(spectatee_status == -1)\r
+                       stomachsplash_alpha = 0;\r
 \r
                stomachsplash_alpha = bound(0, stomachsplash_alpha, 1);\r
                drawpic('0 0 0', "gfx/food", '1 0 0' * vid_conwidth + '0 1 0' * vid_conheight, stov(cvar_string("hud_stomach_color")), stomachsplash_alpha, DRAWFLAG_NORMAL);\r