mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 08:52:40 +01:00
Codechange: Use EnumBitSet for StationFacility.
This commit is contained in:
committed by
Peter Nelson
parent
8d38308ebb
commit
75387b9e2b
@@ -2953,7 +2953,7 @@ TileIndex Train::GetOrderStationLocation(StationID station)
|
||||
if (station == this->last_station_visited) this->last_station_visited = INVALID_STATION;
|
||||
|
||||
const Station *st = Station::Get(station);
|
||||
if (!(st->facilities & FACIL_TRAIN)) {
|
||||
if (!st->facilities.Test(StationFacility::Train)) {
|
||||
/* The destination station has no trainstation tiles. */
|
||||
this->IncrementRealOrderIndex();
|
||||
return TileIndex{};
|
||||
|
||||
Reference in New Issue
Block a user