]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
bot scripting: also exec commands when dead
authorRudolf Polzer <divverent@alientrap.org>
Mon, 19 Sep 2011 08:32:36 +0000 (10:32 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 19 Sep 2011 08:32:47 +0000 (10:32 +0200)
for controlled respawn

qcsrc/server/bot/scripting.qc

index 665b23c85a00c758e58c2103355b918e39161be1..d4773e81ea770c3fa65183c4f63ddf86b9c74d59 100644 (file)
@@ -1166,9 +1166,6 @@ float bot_execute_commands_once()
 {
        local float status, ispressingkey;
 
-       if(self.deadflag!=DEAD_NO)
-               return 0;
-
        // Find command
        bot_setcurrentcommand();