]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/g_world.qc
eater -> predator, because that's a more correct word
[voretournament/voretournament.git] / data / qcsrc / server / g_world.qc
index d06624c224f7caef85e50437cfb0b82ff27beebf..e3e225e0464900fbb78376205001fbda362a3cca 100644 (file)
@@ -49,13 +49,13 @@ void OtherPLReport_Think()
        WriteByte(MSG_BROADCAST, SVC_TEMPENTITY);\r
        WriteByte(MSG_BROADCAST, TE_CSQC_OTHERPLREPORT);\r
        WriteByte(MSG_BROADCAST, self.cnt);\r
-       if(e.eater.classname == "player") // tempt hackers less by only sending the info of eaten players\r
+       if(e.predator.classname == "player") // tempt hackers less by only sending the info of eaten players\r
        {\r
                if(cvar("g_vore_showpreyhealth"))\r
                        WriteByte(MSG_BROADCAST, e.health);\r
                else\r
                        WriteByte(MSG_BROADCAST, 0);\r
-               WriteByte(MSG_BROADCAST, num_for_edict(e.eater));\r
+               WriteByte(MSG_BROADCAST, num_for_edict(e.predator));\r
        }\r
        else\r
        {\r
@@ -657,6 +657,7 @@ void spawnfunc_worldspawn (void)
        addstat(STAT_VORE_LOAD, AS_INT, stat_stomachload);\r
        addstat(STAT_VORE_DIGESTING, AS_INT, stat_digesting);\r
        addstat(STAT_VORE_EATEN, AS_INT, stat_eaten);\r
+       addstat(STAT_VORE_CANLEAVE, AS_INT, stat_canleave);\r
 \r
        next_pingtime = time + 5;\r
        InitializeEntity(self, cvar_changes_init, INITPRIO_CVARS);\r