- moved MAP_DATA to leadai.c

This commit is contained in:
InspirationByte 2022-01-25 22:07:33 +03:00
parent 973729f117
commit 8dea78101d
2 changed files with 14 additions and 17 deletions

View File

@ -33,6 +33,18 @@ static int pathParams[5] = {
int road_s = 0; int road_s = 0;
int road_c = 0; int road_c = 0;
struct MAP_DATA
{
CAR_DATA* cp;
VECTOR* base;
VECTOR* pos;
VECTOR* vel;
VECTOR* size;
int intention;
int* map;
int* local;
};
void CheckCurrentRoad(CAR_DATA* cp); void CheckCurrentRoad(CAR_DATA* cp);
void UpdateRoadPosition(CAR_DATA* cp, VECTOR* basePos, int intention); void UpdateRoadPosition(CAR_DATA* cp, VECTOR* basePos, int intention);
void FakeMotion(CAR_DATA* cp); void FakeMotion(CAR_DATA* cp);
@ -1640,8 +1652,8 @@ void UpdateRoadPosition(CAR_DATA* cp, VECTOR* basePos, int intention)
BlockToMap(&data); BlockToMap(&data);
num_cb = num_cb + -1; num_cb--;
collide = collide + 1; collide++;
} }
} }
ppco = GetNextPackedCop(&ci); ppco = GetNextPackedCop(&ci);

View File

@ -1816,21 +1816,6 @@ struct MISSION_STEP
u_char disc : 1; u_char disc : 1;
}; };
//---------------------------------------------------------------------------------------
// TODO: LEADAI.H
struct MAP_DATA
{
CAR_DATA* cp;
VECTOR* base;
VECTOR* pos;
VECTOR* vel;
VECTOR* size;
int intention;
int* map;
int* local;
};
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
// TODO: PAUSE.H // TODO: PAUSE.H