1
0
Fork 0

(svn r5689) Default a station tile to be electrifiable if there is no other information available. I suppose this was a copy&paste error

release/0.5
tron 2006-08-01 06:04:50 +00:00
parent 90d284372a
commit 92c2793b39
1 changed files with 2 additions and 2 deletions

View File

@ -710,10 +710,10 @@ bool IsStationTileElectrifiable(TileIndex tile)
st = GetStationByTile(tile);
specindex = GetCustomStationSpecIndex(tile);
if (specindex >= st->num_specs) return false;
if (specindex >= st->num_specs) return true;
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));
}