]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2798 "Armor shards stuck in ground on equinox_lightfix"
authorterencehill <piuntn@gmail.com>
Sat, 14 Jan 2023 22:33:15 +0000 (23:33 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 16 Jan 2023 13:02:08 +0000 (14:02 +0100)
qcsrc/server/world.qc

index 47198b7d98fd8c790ff81084038625bb4f0a8fea..18d41827ba21aac05e371813f414aeb79c48c142 100644 (file)
@@ -2267,7 +2267,10 @@ void DropToFloor_Handler(entity this)
 
        // NOTE: SV_NudgeOutOfSolid is used in the engine here
        if(autocvar_sv_gameplayfix_droptofloorstartsolid_nudgetocorrect)
+       {
+               _Movetype_UnstickEntity(this);
                move_out_of_solid(this);
+       }
 
        tracebox(this.origin, this.mins, this.maxs, end, MOVE_NORMAL, this);
 
@@ -2291,7 +2294,10 @@ void DropToFloor_Handler(entity this)
                        LOG_DEBUGF("DropToFloor_Handler: %v fixed badly placed entity", this.origin);
                        setorigin(this, trace_endpos);
                        if(autocvar_sv_gameplayfix_droptofloorstartsolid_nudgetocorrect)
+                       {
+                               _Movetype_UnstickEntity(this);
                                move_out_of_solid(this);
+                       }
                        SET_ONGROUND(this);
                        this.groundentity = trace_ent;
                        // if support is destroyed, keep suspended (gross hack for floating items in various maps)