]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
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 fd08b48bb55a1e1a2813d731382bc6c9fca3d3b9..6bd11539a687c32c7ff70d79d2b85649796322b6 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 72002477831395a24b81280f0c68298bc76592f2..987938627b4abd3a5a006f589a068e43078f1717 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