diff --git a/src_rebuild/Game/C/civ_ai.c b/src_rebuild/Game/C/civ_ai.c index abddb5a9..da352d0d 100644 --- a/src_rebuild/Game/C/civ_ai.c +++ b/src_rebuild/Game/C/civ_ai.c @@ -152,7 +152,6 @@ int InitCar(CAR_DATA* cp, int direction, LONGVECTOR4* startPos, unsigned char co case CONTROL_TYPE_LEAD_AI: // free roamer lead car InitLead(cp); - leadCarId = cp->id; cp->hndType = 5; break; } diff --git a/src_rebuild/Game/C/main.c b/src_rebuild/Game/C/main.c index 4c20f6a4..c28fcec3 100644 --- a/src_rebuild/Game/C/main.c +++ b/src_rebuild/Game/C/main.c @@ -831,7 +831,6 @@ int num_active_cars = 0; u_int lead_pad = 0; int numInactiveCars = 0; -int leadCarId = 0; VECTOR leadcar_pos; @@ -1208,7 +1207,7 @@ void StepSim(void) stupid_logic[1] = player[1].playerCarId; stupid_logic[2] = gThePlayerCar; - stupid_logic[3] = leadCarId; + stupid_logic[3] = player[0].targetCarId; // [A] for (i = 0; i < 3; i++) { diff --git a/src_rebuild/Game/C/main.h b/src_rebuild/Game/C/main.h index 073a6330..d1da426b 100644 --- a/src_rebuild/Game/C/main.h +++ b/src_rebuild/Game/C/main.h @@ -18,7 +18,6 @@ extern int numInactiveCars; extern int gLightsOn; extern int NightAmbient; extern int wetness; -extern int leadCarId; extern int scr_z;