ApplyDamage matching
This commit is contained in:
parent
39e29819e7
commit
66e5e6263f
|
|
@ -1539,7 +1539,7 @@ void ApplyDamage(tPipe_chunk** pChunk) {
|
|||
tCar_spec* car;
|
||||
int i;
|
||||
|
||||
if (((*pChunk)->subject_index & 0xff00) == 0) {
|
||||
if (((*pChunk)->subject_index >> 8) == 0) {
|
||||
car = &gProgram_state.current_car;
|
||||
} else {
|
||||
car = GetCarSpec((*pChunk)->subject_index >> 8, (*pChunk)->subject_index & 0x00ff);
|
||||
|
|
|
|||
Loading…
Reference in New Issue