- remove leadCarId var, update stupid_logic

This commit is contained in:
InspirationByte 2022-01-28 22:45:00 +03:00
parent d577b071ff
commit ed9730162f
3 changed files with 1 additions and 4 deletions

View File

@ -152,7 +152,6 @@ int InitCar(CAR_DATA* cp, int direction, LONGVECTOR4* startPos, unsigned char co
case CONTROL_TYPE_LEAD_AI: case CONTROL_TYPE_LEAD_AI:
// free roamer lead car // free roamer lead car
InitLead(cp); InitLead(cp);
leadCarId = cp->id;
cp->hndType = 5; cp->hndType = 5;
break; break;
} }

View File

@ -831,7 +831,6 @@ int num_active_cars = 0;
u_int lead_pad = 0; u_int lead_pad = 0;
int numInactiveCars = 0; int numInactiveCars = 0;
int leadCarId = 0;
VECTOR leadcar_pos; VECTOR leadcar_pos;
@ -1208,7 +1207,7 @@ void StepSim(void)
stupid_logic[1] = player[1].playerCarId; stupid_logic[1] = player[1].playerCarId;
stupid_logic[2] = gThePlayerCar; stupid_logic[2] = gThePlayerCar;
stupid_logic[3] = leadCarId; stupid_logic[3] = player[0].targetCarId; // [A]
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)
{ {

View File

@ -18,7 +18,6 @@ extern int numInactiveCars;
extern int gLightsOn; extern int gLightsOn;
extern int NightAmbient; extern int NightAmbient;
extern int wetness; extern int wetness;
extern int leadCarId;
extern int scr_z; extern int scr_z;