From: bones_was_here Date: Mon, 21 Mar 2022 17:28:15 +0000 (+1000) Subject: antilag.qc: fix indenting X-Git-Tag: xonotic-v0.8.5~135^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3d7ab8660f960401faeb5728982ea2baf17fcc6e;p=xonotic%2Fxonotic-data.pk3dir.git antilag.qc: fix indenting --- diff --git a/qcsrc/server/antilag.qc b/qcsrc/server/antilag.qc index b57627963..858e0ef8b 100644 --- a/qcsrc/server/antilag.qc +++ b/qcsrc/server/antilag.qc @@ -20,10 +20,10 @@ const int ANTILAG_MAX_ORIGINS = 64; void antilag_record(entity e, entity store, float t) { - if (e.vehicle) { - if (e.vehicle.vehicle_flags == VHF_PLAYERSLOT) return; - antilag_record(e.vehicle, e.vehicle, t); - } + if (e.vehicle) { + if (e.vehicle.vehicle_flags == VHF_PLAYERSLOT) return; + antilag_record(e.vehicle, e.vehicle, t); + } if (time < store.antilag_times[store.antilag_index]) return; store.antilag_index += 1; @@ -86,9 +86,9 @@ vector antilag_takebackavgvelocity(entity e, entity store, float t0, float t1) void antilag_takeback(entity e, entity store, float t) { if (e.vehicle) { - if (e.vehicle.vehicle_flags == VHF_PLAYERSLOT) return; + if (e.vehicle.vehicle_flags == VHF_PLAYERSLOT) return; antilag_takeback(e.vehicle, e.vehicle, t); - } + } if (!store.antilag_takenback) store.antilag_saved_origin = e.origin; @@ -101,7 +101,7 @@ void antilag_takeback(entity e, entity store, float t) void antilag_restore(entity e, entity store) { if (e.vehicle) { - if (e.vehicle.vehicle_flags == VHF_PLAYERSLOT) return; + if (e.vehicle.vehicle_flags == VHF_PLAYERSLOT) return; antilag_restore(e.vehicle, e.vehicle); }