]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix small bug in antial, possibly fixing vehicles teleporting
authorJakob MG <jakob_mg@hotmail.com>
Mon, 11 Jun 2012 11:05:00 +0000 (13:05 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Mon, 11 Jun 2012 11:05:00 +0000 (13:05 +0200)
qcsrc/server/antilag.qc

index 68ec68324d78f785ff84fde5167d7a44a0b1493a..4fd165b308c871617a2ccc42551ea7e434f6a125 100644 (file)
@@ -122,7 +122,7 @@ void antilag_clear(entity e)
        for(i = 0; i < ANTILAG_MAX_ORIGINS; ++i)
        {
                e.(antilag_times[i]) = -2342;
-               e.(antilag_origins[i]) = self.origin;
+               e.(antilag_origins[i]) = e.origin;
        }
        e.antilag_index = ANTILAG_MAX_ORIGINS - 1; // next one is 0
 }