]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Antilag: pass correct storage entity when vehicles are involved
authorTimePath <andrew.hardaker1995@gmail.com>
Fri, 25 Mar 2016 04:51:07 +0000 (15:51 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Fri, 25 Mar 2016 04:51:07 +0000 (15:51 +1100)
Fixes #1707

qcsrc/server/antilag.qc

index 560d7614ca49d35a98f80080763e5ee678d733bf..603fac1c284b15f3fa5d2d2a637f441a8db15ab6 100644 (file)
@@ -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, e.vehicle);
+               antilag_restore(e.vehicle, store);
        }
 
        if (!store.antilag_takenback) return;