From c2ee8d70e48a79a1f3fbe4003c82a545a29ae195 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 28 Dec 2004 11:51:31 +0000 Subject: (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!! --- road_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'road_cmd.c') 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; -- cgit v1.2.3-54-g00ecf