From: Mario Date: Mon, 22 Apr 2013 19:26:19 +0000 (+1000) Subject: Don't move if no players are online X-Git-Tag: xonotic-v0.8.0~241^2^2~302 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=253f1276c701a5bd0d0e3f7971c026311f31d088;p=xonotic%2Fxonotic-data.pk3dir.git Don't move if no players are online --- diff --git a/qcsrc/server/monsters/lib/monsters.qc b/qcsrc/server/monsters/lib/monsters.qc index f09e07560..3aa1e664e 100644 --- a/qcsrc/server/monsters/lib/monsters.qc +++ b/qcsrc/server/monsters/lib/monsters.qc @@ -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)