From: Mario Date: Fri, 12 May 2017 22:35:00 +0000 (+1000) Subject: Fix scoreboard monster counts X-Git-Tag: xonotic-v0.8.5~2790 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=8054e692fbdbc8220dcf6493d112743e66482c00 Fix scoreboard monster counts --- diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index 246c1bef4e..6acbdaa51c 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 b667373a0f..9d890d7358 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;