mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-16 22:48:59 +00:00
29 lines
No EOL
540 B
C++
29 lines
No EOL
540 B
C++
#include "common.h"
|
|
#include "patcher.h"
|
|
#include "main.h"
|
|
#include "PedRoutes.h"
|
|
|
|
CRouteNode (&gaRoutes)[NUMPEDROUTES] = *(CRouteNode(*)[NUMPEDROUTES]) * (uintptr*)0x62E090;
|
|
|
|
int16
|
|
CRouteNode::GetRouteThisPointIsOn(int16 point)
|
|
{
|
|
return gaRoutes[point].m_route;
|
|
}
|
|
|
|
// Actually GetFirstPointOfRoute
|
|
int16
|
|
CRouteNode::GetRouteStart(int16 route)
|
|
{
|
|
for (int i = 0; i < NUMPEDROUTES; i++) {
|
|
if (route == gaRoutes[i].m_route)
|
|
return i;
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
CVector
|
|
CRouteNode::GetPointPosition(int16 point)
|
|
{
|
|
return gaRoutes[point].m_pos;
|
|
} |