QueueOilSpill matching

This commit is contained in:
Dethrace Labs 2025-10-11 08:22:10 +13:00 committed by Dethrace Engineering Department
parent c7d05196e7
commit 61eac41ef5
1 changed files with 5 additions and 4 deletions

View File

@ -125,10 +125,11 @@ void QueueOilSpill(tCar_spec* pCar) {
if (gOily_spills[i].car == NULL) {
oily_index = i;
break;
}
if (gOily_spills[i].spill_time < oldest_time) {
oldest_time = gOily_spills[i].spill_time;
oldest_one = i;
} else {
if (gOily_spills[i].spill_time < oldest_time) {
oldest_time = gOily_spills[i].spill_time;
oldest_one = i;
}
}
}