From 2fd21a1453b64681d080e71eb005e0f437b08437 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 22 May 2016 15:02:00 +1000 Subject: [PATCH] Kill more setself --- qcsrc/common/vehicles/sv_vehicles.qc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index caa82e880..0b16b1517 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -822,7 +822,6 @@ void vehicles_exit(bool eject) if (_vehicle.vehicle_flags & VHF_PLAYERSLOT) { _vehicle.vehicle_exit(eject); - setself(this); vehicles_exit_running = false; return; } @@ -1086,11 +1085,9 @@ void vehicles_enter(entity pl, entity veh) MUTATOR_CALLHOOK(VehicleEnter, pl, veh); - setself(veh); CSQCModel_UnlinkEntity(veh); Vehicle info = Vehicles_from(veh.vehicleid); - info.vr_enter(info, veh); - setself(oldself); + WITHSELF(veh, info.vr_enter(info, veh)); antilag_clear(pl, CS(pl)); } -- 2.39.2