diff options
author | truelight <truelight@openttd.org> | 2004-12-28 11:51:31 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-28 11:51:31 +0000 |
commit | c2ee8d70e48a79a1f3fbe4003c82a545a29ae195 (patch) | |
tree | 31c4abf8c556a50cc2cb6846bddb8f40f21986c9 /station_cmd.c | |
parent | 41201f488c6eb3d4862f49f419ccd9915c46c162 (diff) | |
download | openttd-c2ee8d70e48a79a1f3fbe4003c82a545a29ae195.tar.xz |
(svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
an uint8 till the savegame version is bumped to version 5. Then it works
automaticly as a fully uint16. So _stations[] can not be increased till
after the bump!!
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/station_cmd.c b/station_cmd.c index 72ea344e5..53d21947b 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -105,7 +105,7 @@ TileIndex GetStationTileForVehicle(Vehicle *v, Station *st) static bool CheckStationSpreadOut(Station *st, uint tile, int w, int h) { - byte station_index = st->index; + uint16 station_index = st->index; uint i; uint x1 = GET_TILE_X(tile); uint y1 = GET_TILE_Y(tile); @@ -2168,7 +2168,7 @@ static const byte _enter_station_speedtable[12] = { static uint32 VehicleEnter_Station(Vehicle *v, uint tile, int x, int y) { - byte station_id; + uint16 station_id; byte dir; uint16 spd; @@ -2482,7 +2482,8 @@ int32 CmdRenameStation(int x, int y, uint32 flags, uint32 p1, uint32 p2) uint MoveGoodsToStation(uint tile, int w, int h, int type, uint amount) { Station *around_ptr[8]; - byte around[8], st_index; + byte around[8]; + uint16 st_index; int i; Station *st; uint moved; |