]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix a bug causing stomach load not to show for spectated players
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 14:56:09 +0000 (16:56 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 14:56:09 +0000 (16:56 +0200)
data/qcsrc/server/cl_client.qc
data/qcsrc/server/g_world.qc
docs/TODO.txt

index 928ab6434f554cdcd927dfef72f443da37fb2c51..e185bf6818a28be9291d01b28ee83d2e546d9c26 100644 (file)
@@ -2129,7 +2129,7 @@ void SpectateCopy(entity spectatee) {
        self.swallow_progress_prey = spectatee.swallow_progress_prey;\r
        self.swallow_progress_pred = spectatee.swallow_progress_pred;\r
        self.stat_stomachload = spectatee.stat_stomachload;\r
-       self.stat_stomachmaxload = spectatee.stomach_maxload;\r
+       self.stat_stomachmaxload = spectatee.stat_stomachmaxload;\r
        self.stat_digesting = spectatee.stat_digesting;\r
        self.stat_canleave = spectatee.stat_canleave;\r
        self.stat_canswallow = spectatee.stat_canswallow;\r
index 7f48c6b592cfd7d553187d86112cd76522654a5a..f34842182bd8be2e49eb1c6d48cab100e2015fca 100644 (file)
@@ -659,7 +659,7 @@ void spawnfunc_worldspawn (void)
        addstat(STAT_LAST_PICKUP, AS_FLOAT, last_pickup);\r
        addstat(STAT_WINNING, AS_FLOAT, winning);\r
        addstat(STAT_VORE_LOAD, AS_INT, stat_stomachload);\r
-       addstat(STAT_VORE_MAXLOAD, AS_INT, stomach_maxload);\r
+       addstat(STAT_VORE_MAXLOAD, AS_INT, stat_stomachmaxload);\r
        addstat(STAT_VORE_CANSWALLOW, AS_INT, stat_canswallow);\r
        addstat(STAT_VORE_DIGESTING, AS_INT, stat_digesting);\r
        addstat(STAT_VORE_EATEN, AS_INT, stat_eaten);\r
index 9bdf66b72d431259bc0e6c04f9fa1c60995435e1..97da3f4404cdf577c76c241c1b55efb9773fa2ad 100644 (file)
 \r
 - 0.7 | 0.8: Allow more bots from the menu?\r
 \r
-- 0.7 BUG: When spectating a player, maximum stomach load appears as 0 on the HUD\r
-\r
 - 0.8: Maybe turn the HEAL teammate into a sign, not part of shownames
\ No newline at end of file