Changeset - r3479:2d8e34793d96
[Not reviewed]
master
0 2 0
tron - 19 years ago 2006-04-08 13:50:01
tron@openttd.org
(svn r4324) Remove the unused road stop type attribute from struct RoadStop
2 files changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
station.h
Show inline comments
 
@@ -35,13 +35,12 @@ typedef struct RoadStop {
 
	TileIndex xy;
 
	bool used;
 
	byte status;
 
	uint32 index;
 
	byte num_vehicles;
 
	StationID station;
 
	uint8 type;
 
	struct RoadStop *next;
 
	struct RoadStop *prev;
 
} RoadStop;
 

	
 
struct Station {
 
	TileIndex xy;
station_cmd.c
Show inline comments
 
@@ -1367,13 +1367,12 @@ int32 CmdBuildRoadStop(int x, int y, uin
 
	if (flags & DC_EXEC) {
 
		//point to the correct item in the _busstops or _truckstops array
 
		*currstop = road_stop;
 

	
 
		//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;
 

	
 
		st->build_date = _date;
 

	
 
@@ -2752,13 +2751,13 @@ static const SaveLoad _roadstop_desc[] =
 
	SLE_VAR(RoadStop,xy,           SLE_UINT32),
 
	SLE_VAR(RoadStop,used,         SLE_UINT8),
 
	SLE_VAR(RoadStop,status,       SLE_UINT8),
 
	/* 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),
 

	
 
	SLE_CONDNULL(4, 0, 24),
 
	SLE_CONDNULL(1, 25, 25),
0 comments (0 inline, 0 general)