Hide that message differently for spectators
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 7 Sep 2010 18:39:21 +0000 (21:39 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 7 Sep 2010 18:39:21 +0000 (21:39 +0300)
data/qcsrc/client/sbar.qc
data/qcsrc/server/cl_client.qc

index fd08b48..6bd1153 100644 (file)
@@ -3078,6 +3078,7 @@ void Sbar_Draw (void)
 \r
                // draw the canleave message\r
                if(getstati(STAT_VORE_CANLEAVE))\r
+               if not(spectatee_status) // this message doesn't address spectated players\r
                {\r
                        s = strcat("^7Press ^3", getcommandkey("secondary fire", "+attack2"), " ^7to exit");\r
                        pos_x = bottom_x - stringwidth(s, TRUE, '0 0 0') * 16 / 2;\r
index 7200247..9879386 100644 (file)
@@ -2016,7 +2016,7 @@ void SpectateCopy(entity spectatee) {
        self.stat_eaten = spectatee.stat_eaten;\r
        self.stat_stomachload = spectatee.stat_stomachload;\r
        self.stat_digesting = spectatee.stat_digesting;\r
-       //self.stat_canleave = spectatee.stat_canleave; // don't enable this one, since the notification it's used for does not address spectated players\r
+       self.stat_canleave = spectatee.stat_canleave;\r
        setorigin(self, spectatee.origin);\r
        setsize(self, spectatee.mins, spectatee.maxs);\r
        SetZoomState(spectatee.zoomstate);\r