mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-21 18:02:43 +01:00
- remove leadCarId var, update stupid_logic
This commit is contained in:
parent
d577b071ff
commit
ed9730162f
@ -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;
|
||||
}
|
||||
|
@ -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++)
|
||||
{
|
||||
|
@ -18,7 +18,6 @@ extern int numInactiveCars;
|
||||
extern int gLightsOn;
|
||||
extern int NightAmbient;
|
||||
extern int wetness;
|
||||
extern int leadCarId;
|
||||
|
||||
extern int scr_z;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user