damage_magnitude_accumulator is only available when a car is oppo, net_human or local human (#160)
This commit is contained in:
parent
e8a38f4a1a
commit
25ecaf7309
|
|
@ -939,8 +939,8 @@ int DoCrashEarnings(tCar_spec* pCar1, tCar_spec* pCar2) {
|
|||
}
|
||||
|
||||
dam_acc_2 = 0;
|
||||
if (pCar2) {
|
||||
if (pCar1->driver <= eDriver_non_car) {
|
||||
if (pCar2 != NULL) {
|
||||
if (pCar2->driver <= eDriver_non_car) {
|
||||
dam_acc_2 = 0;
|
||||
} else {
|
||||
dam_acc_2 = pCar2->damage_magnitude_accumulator != 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue