]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix scoreboard monster counts
authorMario <mario@smbclan.net>
Fri, 12 May 2017 22:35:00 +0000 (08:35 +1000)
committerMario <mario@smbclan.net>
Fri, 12 May 2017 22:35:00 +0000 (08:35 +1000)
qcsrc/common/monsters/sv_monsters.qc
qcsrc/common/monsters/sv_monsters.qh

index 246c1bef4e9c4070eb1194b0dae112e2ad5ef52f..6acbdaa51c32207d16ef96f379ef892d1f640a5b 100644 (file)
@@ -25,8 +25,8 @@
 
 void monsters_setstatus(entity this)
 {
-       this.stat_monsters_total = monsters_total;
-       this.stat_monsters_killed = monsters_killed;
+       STAT(MONSTERS_TOTAL, this) = monsters_total;
+       STAT(MONSTERS_KILLED, this) = monsters_killed;
 }
 
 void monster_dropitem(entity this, entity attacker)
index b667373a0f7926496b4633dc16dbc29e69d2b167..9d890d7358eb71335c9f0f0e47fa40612f4853eb 100644 (file)
@@ -1,8 +1,6 @@
 #pragma once
 
 // stats networking
-.int stat_monsters_killed;
-.int stat_monsters_total;
 int monsters_total;
 int monsters_killed;