]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/navigation.qc
Use the ONGROUND macros
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / navigation.qc
index a1bfb05c0acd1802ea9e14a941dca20feaa389bc..43755799871e3ac5313fa3848160968252355bc0 100644 (file)
@@ -551,7 +551,7 @@ void navigation_markroutes(entity fixed_source_waypoint)
                // try a short range search for the nearest waypoints, and expand the search repeatedly if none are found
                // as this search is expensive we will use lower values if the bot is on the air
                float i, increment, maxdistance;
-               if(self.flags & FL_ONGROUND)
+               if(IS_ONGROUND(self))
                {
                        increment = 750;
                        maxdistance = 50000;