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 /road_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 'road_cmd.c')
-rw-r--r-- | road_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/road_cmd.c b/road_cmd.c index 07874499f..0676293ab 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -727,7 +727,7 @@ const byte _road_sloped_sprites[14] = { static void DrawTile_Road(TileInfo *ti) { uint32 image; - byte m2; + uint16 m2; const byte *s; if ( (ti->map5 & 0xF0) == 0) { // if it is a road the upper 4 bits are 0 @@ -1006,7 +1006,7 @@ static void TileLoop_Road(uint tile) } else { // Handle road work - byte b = _map2[tile]; + uint16 b = _map2[tile]; if (b < 0x80) { _map2[tile] = b + 8; return; |