Files @ r831:988a3e103fad
Branch filter:

Location: cpp/openttd-patchpack/source/map.c

truelight
(svn r1302) -Fix: [ 1091655 ] In some older maps somehow water is owned by
OWNER_NONE instead of OWNER_WATER.
-Fix: On InitializeLandscape the map was made MP_WATER, but OWNER_NONE.
When ConvertGroundTilesIntoWaterTiles() is not called, this gives big
problems (see above). Now the owner is set to OWNER_WATER by default.
#include "stdafx.h"
#include "ttd.h"
#include "map.h"

uint _map_log_x = TILE_X_BITS;
uint _map_log_y = TILE_Y_BITS;

byte   _map_type_and_height [TILES_X * TILES_Y];
byte   _map5                [TILES_X * TILES_Y];
byte   _map3_lo             [TILES_X * TILES_Y];
byte   _map3_hi             [TILES_X * TILES_Y];
byte   _map_owner           [TILES_X * TILES_Y];
uint16 _map2                [TILES_X * TILES_Y];
byte   _map_extra_bits      [TILES_X * TILES_Y / 4];