]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Prefer using droptofloor over builtin_droptofloor
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 13 Jun 2016 03:51:07 +0000 (13:51 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 13 Jun 2016 03:51:07 +0000 (13:51 +1000)
qcsrc/common/mutators/mutator/physical_items/physical_items.qc
qcsrc/common/turrets/sv_turrets.qc

index 7bd1687af597676b8a90e7d980218be984a36753..1adec77a79f8e2bfc52dc54cc8f18678a86af037 100644 (file)
@@ -127,7 +127,7 @@ MUTATOR_HOOKFUNCTION(physical_items, Item_Spawn)
        {
                // fix the spawn origin
                setorigin(wep, wep.origin + '0 0 1');
-               WITHSELF(wep, builtin_droptofloor());
+               droptofloor(wep);
        }
 
        wep.spawn_origin = wep.origin;
index 1c87cbb45206968fd199ec29af39b2e961b0e8c1..154ae69b7819c3544e1d00e3ae72fc00a1406c2b 100644 (file)
@@ -1259,7 +1259,7 @@ bool turret_initialize(entity this, Turret tur)
        }
 
        if(!(this.spawnflags & TSF_SUSPENDED))
-               WITHSELF(this, builtin_droptofloor());
+               droptofloor(this);
 
        this.netname = tur.netname;
        load_unit_settings(this, 0);