summaryrefslogtreecommitdiff
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
commit31e0bae89a9ff2eb49b7b43136210f9516e3d724 (patch)
treeda97405bc6ad9064d74e2aed9600ef731f48f552
parent15516f5de51bfecdb68a6736ea24b80607bd6fb9 (diff)
downloadopenttd-31e0bae89a9ff2eb49b7b43136210f9516e3d724.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
-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));
}