]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/antilag.qc
Merge branch 'master' of git://de.git.xonotic.org/xonotic/xonotic-data.pk3dir
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / antilag.qc
index f8454256e4e95e00b03321d99dda5b3a438a3fa5..68ec68324d78f785ff84fde5167d7a44a0b1493a 100644 (file)
@@ -66,9 +66,11 @@ vector antilag_takebackorigin(entity e, float t)
        i0 = antilag_find(e, t);
        if(i0 < 0)
        {
-               i0 = e.antilag_index - 1;
-               if(i0 < 0)
-                       i0 = ANTILAG_MAX_ORIGINS - 1;
+               // IN THE PRESENT
+               if(e.antilag_takenback)
+                       return e.antilag_saved_origin;
+               else
+                       return e.origin;
        }
        i1 = i0 + 1;
        if(i1 >= ANTILAG_MAX_ORIGINS)
@@ -119,7 +121,7 @@ void antilag_clear(entity e)
        antilag_restore(e);
        for(i = 0; i < ANTILAG_MAX_ORIGINS; ++i)
        {
-               e.(antilag_times[i]) = -2342 + i * 0.01;
+               e.(antilag_times[i]) = -2342;
                e.(antilag_origins[i]) = self.origin;
        }
        e.antilag_index = ANTILAG_MAX_ORIGINS - 1; // next one is 0