summaryrefslogtreecommitdiff
path: root/newgrf_station.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-01 06:04:50 +0000
committertron <tron@openttd.org>2006-08-01 06:04:50 +0000
commit92c2793b39114504a57dacf003fee52101a860b0 (patch)
treeda97405bc6ad9064d74e2aed9600ef731f48f552 /newgrf_station.c
parent90d284372a2219bc19b72674f1d4c2dd8d8bc2f1 (diff)
downloadopenttd-92c2793b39114504a57dacf003fee52101a860b0.tar.xz
(svn r5689) Default a station tile to be electrifiable if there is no other information available. I suppose this was a copy&paste error
Diffstat (limited to 'newgrf_station.c')
-rw-r--r--newgrf_station.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newgrf_station.c b/newgrf_station.c
index 0ffe8989e..14b1d083b 100644
--- a/newgrf_station.c
+++ b/newgrf_station.c
@@ -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));
}