changeset 4205:ee201da48779 draft

(svn r5689) Default a station tile to be electrifiable if there is no other information available. I suppose this was a copy&paste error
author tron <tron@openttd.org>
date Tue, 01 Aug 2006 06:04:50 +0000
parents 2eb6f26b240a
children b69fd95a26b4
files newgrf_station.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/newgrf_station.c
+++ b/newgrf_station.c
@@ -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));
 }