]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Undefine SCO_LABEL and remove redundant default case. Also document the inverted...
authorterencehill <piuntn@gmail.com>
Mon, 19 Jun 2023 09:23:21 +0000 (11:23 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 19 Jun 2023 09:23:21 +0000 (11:23 +0200)
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/server/mutators/events.qh

index 7a3d3ede872b7f3c573765a203edb1b02a27279e..35227ffab524c63bb077dfb624b4005f19ed4032 100644 (file)
@@ -176,9 +176,9 @@ string Label_getInfo(string label, int mode)
                SCO_LABEL(_("SCO^teamkills"),     "teamkills", "          ", _("Number of teamkills"));
                SCO_LABEL(_("SCO^ticks"),         "ticks", "              ", _("Number of ticks (Domination)"));
                SCO_LABEL(_("SCO^time"),          "time", "               ", _("Total time raced (Race/CTS)"));
-               default: return label;
        }
        return label;
+#undef SCO_LABEL
 }
 
 bool scoreboard_ui_disabling;
index ce9f958266efbfc203192a3fb07b01b65dc78680..46fb4ede17e4cc4fdb67d82ae8149fd4eee31bd9 100644 (file)
@@ -621,7 +621,10 @@ MUTATOR_HOOKABLE(SetWeaponreplace, EV_SetWeaponreplace);
     /**/
 MUTATOR_HOOKABLE(Item_RespawnCountdown, EV_Item_RespawnCountdown);
 
-/** called when a bot checks a target to attack */
+/**
+ * called when a bot checks a target to attack
+ * return false to allow the bot to attack the target (inverted logic)
+ */
 #define EV_BotShouldAttack(i, o) \
     /** bot */    i(entity, MUTATOR_ARGV_0_entity) \
     /** target */ i(entity, MUTATOR_ARGV_1_entity) \