]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Cleanup the warpzone fix to support .move_movetype
authorMario <mario@smbclan.net>
Fri, 22 Jul 2016 17:38:58 +0000 (03:38 +1000)
committerMario <mario@smbclan.net>
Fri, 22 Jul 2016 17:38:58 +0000 (03:38 +1000)
qcsrc/common/physics/movetypes/movetypes.qc
qcsrc/lib/warpzone/server.qc

index 03a25ab0bcba621c7dc3eb4735da851488a1a51e..668d7b9fc44463a23ddf6d842aca6f11233c0434 100644 (file)
@@ -664,12 +664,9 @@ void Movetype_Physics_MatchTicrate(entity this, float tr, bool sloppy)  // SV_Ph
                        return;
        }
 
-
        if(dt > 0 && this.move_movetype != MOVETYPE_NONE && !IS_ONGROUND(this))
        {
                // now continue the move from move_time to time
-
-
                if(this.move_didgravity > 0)
                {
                        this.velocity_z -= (GAMEPLAYFIX_GRAVITYUNAFFECTEDBYTICRATE ? 0.5 : 1)
@@ -696,7 +693,6 @@ void Movetype_Physics_MatchTicrate(entity this, float tr, bool sloppy)  // SV_Ph
        }
        else
        {
-
                setorigin(this, this.origin);
        }
 }
index 974145e149aa81a744736fce107752b5e03bed7c..4390df8096e49b7aa08d471971920562ec450106 100644 (file)
@@ -175,10 +175,7 @@ void WarpZone_Touch(entity this, entity toucher)
                return;
 
        // FIXME needs a better check to know what is safe to teleport and what not
-       if(toucher.movetype == MOVETYPE_NONE || toucher.movetype == MOVETYPE_FOLLOW || toucher.tag_entity
-#if 0
-       || toucher.move_movetype == MOVETYPE_NONE || toucher.move_movetype == MOVETYPE_FOLLOW
-#endif
+       if((toucher.movetype == MOVETYPE_NONE && toucher.move_movetype == MOVETYPE_NONE) || toucher.movetype == MOVETYPE_FOLLOW || toucher.move_movetype == MOVETYPE_FOLLOW || toucher.tag_entity
 #ifdef CSQC
        || tag_networkentity
 #endif