]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Assault: Don't reset vehicles twice when a round ends (they are reset in ReadyRestart...
authorterencehill <piuntn@gmail.com>
Tue, 13 Sep 2016 10:40:04 +0000 (12:40 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 13 Sep 2016 10:40:04 +0000 (12:40 +0200)
qcsrc/server/mutators/mutator/gamemode_assault.qc

index 10a8f644f89c7e2389c4c879ede4db57e485eef2..a91af90f0fc4d2adac247f735908d1bd7648434b 100644 (file)
@@ -185,15 +185,6 @@ void assault_new_round(entity this)
 {
        //bprint("ASSAULT: new round\n");
 
-       // Eject players from vehicles
-    FOREACH_CLIENT(IS_PLAYER(it) && it.vehicle, vehicles_exit(it.vehicle, VHEF_RELEASE));
-
-    IL_EACH(g_vehicles, true,
-    {
-        vehicles_clearreturn(it);
-        vehicles_spawn(it);
-    });
-
        // up round counter
        this.winning = this.winning + 1;