From: Mario Date: Sun, 12 Sep 2021 10:31:04 +0000 (+1000) Subject: Add support for item pickups in LMS when g_pickup_items is set to 1 (forced) X-Git-Tag: xonotic-v0.8.5~271^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d9dddd1db77a4e283d0b84702c0c339af7517de7;p=xonotic%2Fxonotic-data.pk3dir.git Add support for item pickups in LMS when g_pickup_items is set to 1 (forced) --- diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index dc18b7c90..db5282466 100644 --- a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc +++ b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc @@ -348,7 +348,7 @@ MUTATOR_HOOKFUNCTION(lms, FilterItemDefinition) { return false; } - return true; + return (autocvar_g_pickup_items <= 0); // only allow items if explicitly enabled } void lms_extralife(entity this)