From: Martin Taibr Date: Sat, 28 Oct 2017 22:37:15 +0000 (+0200) Subject: manually fix one chain X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a6ac966ee6ca289719c593f2e4739813fd5aff21;p=xonotic%2Fxonotic-data.pk3dir.git manually fix one chain --- diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index 1fbd802104..3cefa4371b 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);