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;
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;
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);
}