From: Mario Date: Sat, 26 Mar 2016 16:47:57 +0000 (+1000) Subject: Don't store vehicle's antilag data to the player's clientstate entity, fixes breakage... X-Git-Tag: xonotic-v0.8.2~1003 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3729bd5e0c56ea13b26a6430cd2743cc564ddec1;p=xonotic%2Fxonotic-data.pk3dir.git Don't store vehicle's antilag data to the player's clientstate entity, fixes breakage with vehicles --- 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;