Files
GTASource/game/vehicleAi/pathfind_shared.cpp
expvintl 419f2e4752 init
2025-02-23 17:40:52 +08:00

25 lines
897 B
C++

#include "vehicleai/pathfind.h"
#if !__SPU
#include "fwscene/world/WorldLimits.h"
#endif
/////////////////////////////////////////////////////////////////////////////////
// FUNCTION : FindXCoorsForRegion
// PURPOSE : Give a Region this function returns the coordinate of the left corner
/////////////////////////////////////////////////////////////////////////////////
float CPathFind::FindXCoorsForRegion(s32 Region) const
{
return WORLDLIMITS_REP_XMIN + Region * PATHFINDREGIONSIZEX;
}
/////////////////////////////////////////////////////////////////////////////////
// FUNCTION : FindYCoorsForRegion
// PURPOSE : Give a Region this function returns the coordinate of the left corner
/////////////////////////////////////////////////////////////////////////////////
float CPathFind::FindYCoorsForRegion(s32 Region) const
{
return WORLDLIMITS_REP_YMIN + Region * PATHFINDREGIONSIZEY;
}