| 812 | } |
| 813 | |
| 814 | void CBotManager::CalculateMaxAStarCount() |
| 815 | { |
| 816 | if (WaypointClass.m_iWaypointCount > 0) // Are there any waypoints? |
| 817 | { |
| 818 | m_sMaxAStarBots = 8 - short(ceil((float)WaypointClass.m_iWaypointCount / |
| 819 | 1000.0f)); |
| 820 | if (m_sMaxAStarBots < 1) |
| 821 | m_sMaxAStarBots = 1; |
| 822 | } |
| 823 | else |
| 824 | m_sMaxAStarBots = 1; |
| 825 | } |
| 826 | |
| 827 | void CBotManager::PickNextTrigger() |
| 828 | { |