From a738772e9dfacbc7dc1a648d68dc0d496f013d7d Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 17 May 2013 11:28:32 +1000 Subject: [PATCH] Move VehicleTouch to the correct function --- qcsrc/server/vehicles/vehicles.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/vehicles/vehicles.qc b/qcsrc/server/vehicles/vehicles.qc index dc78b0545..1e78bd5a2 100644 --- a/qcsrc/server/vehicles/vehicles.qc +++ b/qcsrc/server/vehicles/vehicles.qc @@ -537,6 +537,9 @@ void vehilces_impact(float _minspeed, float _speedfac, float _maxpain) .void() vehicle_impact; void vehicles_touch() { + if(MUTATOR_CALLHOOK(VehicleTouch)) + return; + // Vehicle currently in use if(self.owner) { @@ -585,9 +588,6 @@ void vehicles_enter() if(self.team) if(self.team != other.team) return; - - if(MUTATOR_CALLHOOK(VehicleTouch)) - return; RemoveGrapplingHook(other); -- 2.39.2