This commit is contained in:
Nikolay Korolev
2019-10-13 14:46:09 +03:00
parent a1700eeaa4
commit 8eda735918
7 changed files with 444 additions and 13 deletions

View File

@ -26,4 +26,20 @@ CVector
CRouteNode::GetPointPosition(int16 point)
{
return gaRoutes[point].m_pos;
}
}
void
CRouteNode::AddRoutePoint(int16 route, CVector pos)
{
uint16 point;
for (point = 0; point < NUMPEDROUTES; point++) {
if (gaRoutes[point].m_route == -1)
break;
}
#ifdef FIX_BUGS
if (point == NUMPEDROUTES)
return;
#endif
gaRoutes[point].m_route = route;
gaRoutes[point].m_pos = pos;
}

View File

@ -9,4 +9,5 @@ public:
static int16 GetRouteThisPointIsOn(int16);
static CVector GetPointPosition(int16);
static int16 GetRouteStart(int16);
static void AddRoutePoint(int16, CVector);
};