Skip to content

Commit 44f040e

Browse files
committed
online fixes
1 parent 40c13ea commit 44f040e

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

decompile/General/Vehicle/VehEmitter_0_Exhaust.c

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,17 @@ struct Particle* DECOMP_VehEmitter_Exhaust(struct Driver *d, VECTOR *param_2, VE
2727

2828
char numPlyr = gGT->numPlyrCurrGame;
2929

30-
// equivalent of (d->driverID < numPlyr),
31-
// because modelIndex is not set to DYNAMIC_ROBOT_CAR
32-
// for human players after BOTS_Driver_Convert is called
33-
if (dInst->thread->modelIndex != DYNAMIC_ROBOT_CAR)
30+
int boolUseHighExhaust;
31+
32+
#ifdef USE_ONLINE
33+
boolUseHighExhaust = (d->driverID == 0);
34+
#else
35+
// equivalent of (d->driverID < numPlyr),
36+
// After BOTS_Driver_Convert, human modelIndex is still DYNAMIC_PLAYER
37+
boolUseHighExhaust = (dInst->thread->modelIndex != DYNAMIC_ROBOT_CAR);
38+
#endif
39+
40+
if (boolUseHighExhaust)
3441
{
3542
switch (numPlyr)
3643
{

0 commit comments

Comments
 (0)