From 8054e692fbdbc8220dcf6493d112743e66482c00 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 13 May 2017 08:35:00 +1000 Subject: [PATCH] Fix scoreboard monster counts --- qcsrc/common/monsters/sv_monsters.qc | 4 ++-- qcsrc/common/monsters/sv_monsters.qh | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index 246c1bef4..6acbdaa51 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -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) diff --git a/qcsrc/common/monsters/sv_monsters.qh b/qcsrc/common/monsters/sv_monsters.qh index b667373a0..9d890d735 100644 --- a/qcsrc/common/monsters/sv_monsters.qh +++ b/qcsrc/common/monsters/sv_monsters.qh @@ -1,8 +1,6 @@ #pragma once // stats networking -.int stat_monsters_killed; -.int stat_monsters_total; int monsters_total; int monsters_killed; -- 2.39.2