]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't move if no players are online
authorMario <mario.mario@y7mail.com>
Mon, 22 Apr 2013 19:26:19 +0000 (05:26 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 22 Apr 2013 19:26:19 +0000 (05:26 +1000)
qcsrc/server/monsters/lib/monsters.qc

index f09e075609f37f8c24c4f1078ca07c32eaddf62a..3aa1e664e5a6bccd18e3d393d4b41e613688c72c 100644 (file)
@@ -538,7 +538,7 @@ void monster_move(float runspeed, float walkspeed, float stopspeed, float manim_
                }
        }
        
-       if(gameover || time < game_starttime || (autocvar_g_campaign && !campaign_bots_may_start) || time < self.spawn_time)
+       if(gameover || time < game_starttime || (autocvar_g_campaign && !campaign_bots_may_start) || time < self.spawn_time || player_count - currentbots < 1)
        {
                runspeed = walkspeed = 0;
                if(time >= self.spawn_time)