]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fixed humiliation medal
authorz411 <z411@omaera.org>
Sun, 4 Oct 2020 19:28:41 +0000 (16:28 -0300)
committerz411 <z411@omaera.org>
Sun, 4 Oct 2020 19:28:41 +0000 (16:28 -0300)
qcsrc/server/damage.qc

index 988d86c3b536674a4f414cf7afc7d87cd8ffc0b9..6aa9155077936be44d53aa64e619c5f2096023ce 100644 (file)
@@ -207,7 +207,7 @@ float Obituary_WeaponDeath(
                if(attacker) {
                        switch(death_message) {
                                case WEAPON_SHOTGUN_MURDER_SLAP:
-                                       if(!autocvar_g_melee_only) { // don't spam humiliation if we're in melee_only mode
+                                       if(!cvar("g_melee_only")) { // don't spam humiliation if we're in melee_only mode
                                                Give_Medal(attacker, HUMILIATION);
                                        }
                                        break;