From 3729bd5e0c56ea13b26a6430cd2743cc564ddec1 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 27 Mar 2016 02:47:57 +1000 Subject: [PATCH] Don't store vehicle's antilag data to the player's clientstate entity, fixes breakage with vehicles --- qcsrc/server/antilag.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/antilag.qc b/qcsrc/server/antilag.qc index 603fac1c2..d5f8e39f7 100644 --- a/qcsrc/server/antilag.qc +++ b/qcsrc/server/antilag.qc @@ -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; -- 2.39.2