mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 02:42:42 +01:00
Codechange: strongly type StationID
This commit is contained in:
@@ -3305,7 +3305,7 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
|
||||
}
|
||||
if (HasBit(r, VETS_ENTERED_STATION)) {
|
||||
/* The new position is the end of the platform */
|
||||
TrainEnterStation(v, r >> VETS_STATION_ID_OFFSET);
|
||||
TrainEnterStation(v, StationID(r >> VETS_STATION_ID_OFFSET));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -3499,7 +3499,7 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
|
||||
|
||||
if (HasBit(r, VETS_ENTERED_STATION)) {
|
||||
/* The new position is the location where we want to stop */
|
||||
TrainEnterStation(v, r >> VETS_STATION_ID_OFFSET);
|
||||
TrainEnterStation(v, StationID(r >> VETS_STATION_ID_OFFSET));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user