]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove player count check from monster think function
authorMario <mario.mario@y7mail.com>
Mon, 22 Apr 2013 08:34:56 +0000 (18:34 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 22 Apr 2013 08:34:56 +0000 (18:34 +1000)
qcsrc/server/mutators/gamemode_towerdefense.qc

index 262c2c53f4db9032be31ba5c9a0cea87f7691ae4..549619823227b165e0a8ff9cb6aff0a544f6b835 100644 (file)
@@ -762,20 +762,10 @@ MUTATOR_HOOKFUNCTION(td_MonsterCheckBossFlag)
 
 MUTATOR_HOOKFUNCTION(td_MonsterMove)
 {
-       entity player, monster = world;
-       float n_players = 0;
+       entity monster = world;
        float dot = 0, es = 10;
        vector extra_size = '1 1 1' * es;
        
-       FOR_EACH_PLAYER(player) { ++n_players; }
-       
-       if(n_players < 1) // no players online, so do nothing
-       {
-               monster_target = world;
-               monster_speed_run = monster_speed_walk = 0;
-               return FALSE;
-       }
-       
        if not(self.enemy)
        {
                makevectors (self.angles);