Assault in Campaign: only run the first round
authorRudolf Polzer <divverent@alientrap.org>
Tue, 19 Oct 2010 15:42:44 +0000 (17:42 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 19 Oct 2010 15:42:44 +0000 (17:42 +0200)
qcsrc/server/g_world.qc

index bc90ecac7b40630b16b0fa6c185e8d3e21c8fca9..f75b0ba49807b7461abdb782b4c5459155969959 100644 (file)
@@ -1654,7 +1654,7 @@ float WinningCondition_Assault()
 
                        TeamScore_AddToTeam(assault_attacker_team, ST_ASSAULT_OBJECTIVES, 666 - TeamScore_AddToTeam(assault_attacker_team, ST_ASSAULT_OBJECTIVES, 0));
 
-                       if(ent.cnt == 1) // this was the second round
+                       if(ent.cnt == 1 || cvar("g_campaign")) // this was the second round
                        {
                                status = WINNING_YES;
                        }