mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-23 21:50:23 +01:00
(svn r5689) Default a station tile to be electrifiable if there is no other information available. I suppose this was a copy&paste error
This commit is contained in:
parent
90d284372a
commit
92c2793b39
@ -710,10 +710,10 @@ bool IsStationTileElectrifiable(TileIndex tile)
|
|||||||
|
|
||||||
st = GetStationByTile(tile);
|
st = GetStationByTile(tile);
|
||||||
specindex = GetCustomStationSpecIndex(tile);
|
specindex = GetCustomStationSpecIndex(tile);
|
||||||
if (specindex >= st->num_specs) return false;
|
if (specindex >= st->num_specs) return true;
|
||||||
|
|
||||||
statspec = st->speclist[specindex].spec;
|
statspec = st->speclist[specindex].spec;
|
||||||
if (statspec == NULL) return false;
|
if (statspec == NULL) return true;
|
||||||
|
|
||||||
return HASBIT(statspec->pylons, GetStationGfx(tile)) || !HASBIT(statspec->wires, GetStationGfx(tile));
|
return HASBIT(statspec->pylons, GetStationGfx(tile)) || !HASBIT(statspec->wires, GetStationGfx(tile));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user