]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
antilag.qc: fix indenting
authorbones_was_here <bones_was_here@xa.org.au>
Mon, 21 Mar 2022 17:28:15 +0000 (03:28 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Mon, 21 Mar 2022 21:00:17 +0000 (07:00 +1000)
qcsrc/server/antilag.qc

index b57627963c48c547ddd9b1c6e0e934562a88be6c..858e0ef8b152b433b6e92c896953cfe648f65801 100644 (file)
@@ -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);
        }