]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/havocbot/havocbot.qc
Merge master into qc_physics_prehax (blame TimePath if it's completely broken)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / havocbot / havocbot.qc
index dfb615d03715ecd4e3ee5f5b5fb2ea32a6c4b497..9fa1667099b4b3ac017cde9987004d58dd082192 100644 (file)
@@ -9,6 +9,8 @@
 
 #include "../../../common/constants.qh"
 
+#include "../../../common/triggers/trigger/jumppads.qh"
+
 #include "../../../warpzonelib/common.qh"
 
 void havocbot_ai()
@@ -475,7 +477,7 @@ void havocbot_movetogoal()
 
                // Flying
                self.BUTTON_HOOK = true;
-               if(self.navigation_jetpack_point.z - PL_MAX_z + PL_MIN_z < self.origin.z)
+               if(self.navigation_jetpack_point.z - PL_MAX.z + PL_MIN.z < self.origin.z)
                {
                        self.movement_x = dir * v_forward * maxspeed;
                        self.movement_y = dir * v_right * maxspeed;