From a6ac966ee6ca289719c593f2e4739813fd5aff21 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Sun, 29 Oct 2017 00:37:15 +0200 Subject: [PATCH] manually fix one chain --- qcsrc/common/vehicles/sv_vehicles.qc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index 1fbd80210..3cefa4371 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -965,11 +965,10 @@ void vehicles_enter(entity pl, entity veh) if(veh.owner) return; // got here and didn't enter the gunner, return - if(teamplay) - if(veh.team) - if(DIFF_TEAM(pl, veh)) - if(autocvar_g_vehicles_steal) + if (teamplay && veh.team && DIFF_TEAM(pl, veh)) { + if (!autocvar_g_vehicles_steal) return; + FOREACH_CLIENT(IS_PLAYER(it) && SAME_TEAM(it, veh), Send_Notification(NOTIF_ONE, it, MSG_CENTER, CENTER_VEHICLE_STEAL)); Send_Notification(NOTIF_ONE, pl, MSG_CENTER, CENTER_VEHICLE_STEAL_SELF); @@ -983,7 +982,6 @@ void vehicles_enter(entity pl, entity veh) wp.colormod = Team_ColorRGB(pl.team); } } - else return; RemoveGrapplingHooks(pl); -- 2.39.2