From 8dea78101deb60981c129d978788532cacd47395 Mon Sep 17 00:00:00 2001 From: InspirationByte Date: Tue, 25 Jan 2022 22:07:33 +0300 Subject: [PATCH] - moved MAP_DATA to leadai.c --- src_rebuild/Game/C/leadai.c | 16 ++++++++++++++-- src_rebuild/Game/dr2types.h | 15 --------------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/src_rebuild/Game/C/leadai.c b/src_rebuild/Game/C/leadai.c index 3981ea1b..40e3c237 100644 --- a/src_rebuild/Game/C/leadai.c +++ b/src_rebuild/Game/C/leadai.c @@ -33,6 +33,18 @@ static int pathParams[5] = { int road_s = 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 UpdateRoadPosition(CAR_DATA* cp, VECTOR* basePos, int intention); void FakeMotion(CAR_DATA* cp); @@ -1640,8 +1652,8 @@ void UpdateRoadPosition(CAR_DATA* cp, VECTOR* basePos, int intention) BlockToMap(&data); - num_cb = num_cb + -1; - collide = collide + 1; + num_cb--; + collide++; } } ppco = GetNextPackedCop(&ci); diff --git a/src_rebuild/Game/dr2types.h b/src_rebuild/Game/dr2types.h index 3045f41d..316e99b6 100644 --- a/src_rebuild/Game/dr2types.h +++ b/src_rebuild/Game/dr2types.h @@ -1816,21 +1816,6 @@ struct MISSION_STEP 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