(svn r4324) Remove the unused road stop type attribute from struct RoadStop
authortron
Sat, 08 Apr 2006 13:50:01 +0000
changeset 3479 a4d992b5d24d
parent 3478 328cd2f4268d
child 3480 a36c0220b5d3
(svn r4324) Remove the unused road stop type attribute from struct RoadStop
station.h
station_cmd.c
--- a/station.h	Sat Apr 08 13:32:38 2006 +0000
+++ b/station.h	Sat Apr 08 13:50:01 2006 +0000
@@ -38,7 +38,6 @@
 	uint32 index;
 	byte num_vehicles;
 	StationID station;
-	uint8 type;
 	struct RoadStop *next;
 	struct RoadStop *prev;
 } RoadStop;
--- a/station_cmd.c	Sat Apr 08 13:32:38 2006 +0000
+++ b/station_cmd.c	Sat Apr 08 13:50:01 2006 +0000
@@ -1370,7 +1370,6 @@
 
 		//initialize an empty station
 		InitializeRoadStop(road_stop, prev, tile, st->index);
-		(*currstop)->type = type;
 		if (!st->facilities) st->xy = tile;
 		st->facilities |= (type) ? FACIL_TRUCK_STOP : FACIL_BUS_STOP;
 		st->owner = _current_player;
@@ -2755,7 +2754,7 @@
 	/* Index was saved in some versions, but this is not needed */
 	SLE_CONDNULL(4, 0, 8),
 	SLE_VAR(RoadStop,station,      SLE_UINT16),
-	SLE_VAR(RoadStop,type,         SLE_UINT8),
+	SLE_CONDNULL(1, 0, 25),
 
 	SLE_REF(RoadStop,next,         REF_ROADSTOPS),
 	SLE_REF(RoadStop,prev,         REF_ROADSTOPS),