MCPcopy Create free account
hub / github.com/assaultcube/AC / CalculateMaxAStarCount

Method CalculateMaxAStarCount

source/src/bot/botmanager.cpp:814–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812}
813
814void 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
827void CBotManager::PickNextTrigger()
828{

Callers 1

FloodThinkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected