]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/physics/movetypes/push.qc
Purge self from event_damage
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / physics / movetypes / push.qc
index b832465464ffd7496c273dd3b70214d84d7c8295..dc455944cd86b24cea1f8b9ff5ba33ef267ac270 100644 (file)
@@ -93,16 +93,14 @@ void _Movetype_PushMove(entity this, float dt)  // SV_PushMove
                        if (check.move_movetype == 32)  // MOVETYPE_PHYSICS
                        {
                                check.move_origin = check.move_origin + move;
-                               WITH(entity, this, check, _Movetype_LinkEdict(this, true));
+                               _Movetype_LinkEdict(check, true);
                                continue;
                        }
 
                        // try moving the contacted entity
                        this.solid = SOLID_NOT;
                        bool flag = false;
-                       WITH(entity, this, check, {
-                               flag = _Movetype_PushEntity(this, move, true);
-                       });
+                       flag = _Movetype_PushEntity(check, move, true);
                        if (!flag)
                        {
                                // entity "check" got teleported