]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_world.qc
Begin converting tower defense to a teamplay mode
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_world.qc
index db5b1d44fb94a5770bdaf1374759b1fc4dcc5227..cf2d12612e27e0a648de1d32fcd1df620a618ee9 100644 (file)
@@ -2072,36 +2072,6 @@ float WinningCondition_RanOutOfSpawns()
                return WINNING_NO;
 }
 
-// TD winning condition:
-// game terminates if there are no generators (or 1 dies if td_dont_end is FALSE)
-float gensurvived;
-float WinningCondition_TowerDefense()
-{
-       WinningConditionHelper(); // set worldstatus
-
-       if(inWarmupStage)
-               return WINNING_NO;
-
-       // first check if the game has ended
-       if(gendestroyed == TRUE)
-       if(td_gencount < 1 || !td_dont_end)
-       {
-               ClearWinners();
-               dprint("Everyone lost, ending game.\n");
-               return WINNING_YES;
-       }
-       
-       if(gensurvived)
-       {
-               ClearWinners();
-               checkrules_equality = TRUE;
-               return WINNING_YES;
-       }
-
-       // Two or more teams remain
-       return WINNING_NO;
-}
-
 /*
 ============
 CheckRules_World
@@ -2257,10 +2227,6 @@ void CheckRules_World()
        {
                checkrules_status = WinningCondition_Onslaught(); // TODO remove this?
        }
-       else if(g_td)
-       {
-               checkrules_status = WinningCondition_TowerDefense();
-       }
        else
        {
                checkrules_status = WinningCondition_Scores(fraglimit, leadlimit);