]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/powerups/sv_powerups.qc
Merge branch 'master' into z411/powerups_drop
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / powerups / sv_powerups.qc
index 68e2c8c7281d7997f94d1bbc9780bb38ebb900d1..739f197d2c2503ace8ac8939125876c0e06545b6 100644 (file)
@@ -112,7 +112,7 @@ void powerups_DropItem(entity this, StatusEffects effect, bool freezeTimer)
 
        // If the timer is frozen, the item will stay on the floor for 20 secs (same as weapons),
        // otherwise it'll disappear after the timer runs out.
-       float time_to_live = (freezeTimer ? autocvar_g_powerups_dropondeath_ttl : timeleft);
+       float time_to_live = (freezeTimer ? autocvar_g_items_dropped_lifetime : timeleft);
 
        // TODO: items cannot hold their "item field" yet, so we need to list all the powerups here!
        switch(item)
@@ -154,7 +154,7 @@ MUTATOR_HOOKFUNCTION(powerups, ItemTouched)
 
 MUTATOR_HOOKFUNCTION(powerups, PlayerDies)
 {
-       if(!autocvar_g_powerups_dropondeath)
+       if(!autocvar_g_powerups_drop_ondeath)
                return;
 
        entity frag_target = M_ARGV(2, entity);