]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
manually fix one chain
authorMartin Taibr <taibr.martin@gmail.com>
Sat, 28 Oct 2017 22:37:15 +0000 (00:37 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Sat, 28 Oct 2017 22:37:15 +0000 (00:37 +0200)
qcsrc/common/vehicles/sv_vehicles.qc

index 1fbd80210475debd33e63fc5823ca4dd114214bb..3cefa4371bfffb828d3e0b573ec8959ee0360dce 100644 (file)
@@ -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);