]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Attempt to fix monster counting failing after a few waves
authorMario <mario.mario@y7mail.com>
Sat, 11 May 2013 11:44:32 +0000 (21:44 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 11 May 2013 11:44:32 +0000 (21:44 +1000)
qcsrc/server/mutators/gamemode_towerdefense.qc

index fcd2618a69f9886b2f2de262265771468a9d53f4..7e905fd3aaa440a3a94dc34a2d7825fffaaad707 100644 (file)
@@ -448,8 +448,8 @@ float RandomMonster()
        
        float i;
        
-       for(i = 2; i < MONSTER_LAST; ++i)
-       if(td_moncount[i])
+       for(i = MONSTER_FIRST + 1; i < MONSTER_LAST; ++i)
+       if(td_moncount[i] > 0)
        if(i == MONSTER_STINGRAY || i == MONSTER_SHAMBLER || i == MONSTER_SLIME)
                RandomSelection_Add(world, i, "", 0.2, 0.2);
        else
@@ -498,7 +498,7 @@ void queue_monsters(float maxmonsters)
        
        float i;
        
-       for(i = 2; i < MONSTER_LAST; ++i)
+       for(i = MONSTER_FIRST + 1; i < MONSTER_LAST; ++i)
        {
                if(i == MONSTER_WYVERN)
                if(flyspawns_count < 1)