]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix the previous fix!
authorterencehill <piuntn@gmail.com>
Sat, 22 Aug 2015 21:02:04 +0000 (23:02 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 22 Aug 2015 21:02:04 +0000 (23:02 +0200)
qcsrc/server/bot/havocbot/havocbot.qc

index b36c79830d31f7b32cc1cdf13c013cc9531d9623..ee7b549348562cff1b6dbcbf14852a892dd66ee0 100644 (file)
@@ -921,13 +921,17 @@ void havocbot_chooseenemy()
                                if(head.classname == "misc_breakablemodel")
                                {
                                        have_secondary_targets = true;
                                if(head.classname == "misc_breakablemodel")
                                {
                                        have_secondary_targets = true;
+                                       head = head.chain;
                                        continue;
                                }
                        }
                        else
                        {
                                if(head.classname != "misc_breakablemodel")
                                        continue;
                                }
                        }
                        else
                        {
                                if(head.classname != "misc_breakablemodel")
+                               {
+                                       head = head.chain;
                                        continue;
                                        continue;
+                               }
                        }
 
                        v = (head.absmin + head.absmax) * 0.5;
                        }
 
                        v = (head.absmin + head.absmax) * 0.5;