]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add support for item pickups in LMS when g_pickup_items is set to 1 (forced)
authorMario <mario.mario@y7mail.com>
Sun, 12 Sep 2021 10:31:04 +0000 (20:31 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 12 Sep 2021 10:31:04 +0000 (20:31 +1000)
qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc

index dc18b7c9072413a51d0d93d2aff0993682cb0750..db5282466c3dd37809f7fdee1e4e1e98aed52ff5 100644 (file)
@@ -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)