(svn r5689) Default a station tile to be electrifiable if there is no other information available. I suppose this was a copy&paste error
authortron
Tue, 01 Aug 2006 06:04:50 +0000
changeset 4205 8a436ea8b69a
parent 4204 3aa39be759f2
child 4206 8f5e602cd2b1
(svn r5689) Default a station tile to be electrifiable if there is no other information available. I suppose this was a copy&paste error
newgrf_station.c
--- a/newgrf_station.c	Mon Jul 31 22:40:55 2006 +0000
+++ b/newgrf_station.c	Tue Aug 01 06:04:50 2006 +0000
@@ -710,10 +710,10 @@
 
 	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));
 }