]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't store vehicle's antilag data to the player's clientstate entity, fixes breakage...
authorMario <mario@smbclan.net>
Sat, 26 Mar 2016 16:47:57 +0000 (02:47 +1000)
committerMario <mario@smbclan.net>
Sat, 26 Mar 2016 16:47:57 +0000 (02:47 +1000)
qcsrc/server/antilag.qc

index 603fac1c284b15f3fa5d2d2a637f441a8db15ab6..d5f8e39f756aa00a52b9a9c7b48371beabb9bd39 100644 (file)
@@ -85,7 +85,7 @@ void antilag_takeback(entity e, entity store, float t)
 {
        if (e.vehicle) {
            if (e.vehicle.vehicle_flags == VHF_PLAYERSLOT) return;
-               antilag_takeback(e.vehicle, store, t);
+               antilag_takeback(e.vehicle, e.vehicle, t);
     }
 
        if (!store.antilag_takenback)
@@ -100,7 +100,7 @@ void antilag_restore(entity e, entity store)
 {
        if (e.vehicle) {
            if (e.vehicle.vehicle_flags == VHF_PLAYERSLOT) return;
-               antilag_restore(e.vehicle, store);
+               antilag_restore(e.vehicle, e.vehicle);
        }
 
        if (!store.antilag_takenback) return;