mirror of https://github.com/OpenTTD/OpenTTD
(svn r4324) Remove the unused road stop type attribute from struct RoadStop
parent
da60a82021
commit
90836a461d
|
@ -38,7 +38,6 @@ typedef struct RoadStop {
|
||||||
uint32 index;
|
uint32 index;
|
||||||
byte num_vehicles;
|
byte num_vehicles;
|
||||||
StationID station;
|
StationID station;
|
||||||
uint8 type;
|
|
||||||
struct RoadStop *next;
|
struct RoadStop *next;
|
||||||
struct RoadStop *prev;
|
struct RoadStop *prev;
|
||||||
} RoadStop;
|
} RoadStop;
|
||||||
|
|
|
@ -1370,7 +1370,6 @@ int32 CmdBuildRoadStop(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
||||||
|
|
||||||
//initialize an empty station
|
//initialize an empty station
|
||||||
InitializeRoadStop(road_stop, prev, tile, st->index);
|
InitializeRoadStop(road_stop, prev, tile, st->index);
|
||||||
(*currstop)->type = type;
|
|
||||||
if (!st->facilities) st->xy = tile;
|
if (!st->facilities) st->xy = tile;
|
||||||
st->facilities |= (type) ? FACIL_TRUCK_STOP : FACIL_BUS_STOP;
|
st->facilities |= (type) ? FACIL_TRUCK_STOP : FACIL_BUS_STOP;
|
||||||
st->owner = _current_player;
|
st->owner = _current_player;
|
||||||
|
@ -2755,7 +2754,7 @@ static const SaveLoad _roadstop_desc[] = {
|
||||||
/* Index was saved in some versions, but this is not needed */
|
/* Index was saved in some versions, but this is not needed */
|
||||||
SLE_CONDNULL(4, 0, 8),
|
SLE_CONDNULL(4, 0, 8),
|
||||||
SLE_VAR(RoadStop,station, SLE_UINT16),
|
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,next, REF_ROADSTOPS),
|
||||||
SLE_REF(RoadStop,prev, REF_ROADSTOPS),
|
SLE_REF(RoadStop,prev, REF_ROADSTOPS),
|
||||||
|
|
Loading…
Reference in New Issue