landscape.c
changeset 3529 0e04dacbf70d
parent 3493 4d5830846ec2
child 3636 d87b21df2944
equal deleted inserted replaced
3528:ca3ce10452d8 3529:0e04dacbf70d
    63 
    63 
    64 	if (x >= MapMaxX() * TILE_SIZE - 1 || y >= MapMaxY() * TILE_SIZE - 1) {
    64 	if (x >= MapMaxX() * TILE_SIZE - 1 || y >= MapMaxY() * TILE_SIZE - 1) {
    65 		ti->tileh = 0;
    65 		ti->tileh = 0;
    66 		ti->type = MP_VOID;
    66 		ti->type = MP_VOID;
    67 		ti->tile = 0;
    67 		ti->tile = 0;
    68 		ti->map5 = 0;
       
    69 		ti->z = 0;
    68 		ti->z = 0;
    70 	} else {
    69 	} else {
    71 		TileIndex tile = TileVirtXY(x, y);
    70 		TileIndex tile = TileVirtXY(x, y);
    72 
    71 
    73 		ti->tile = tile;
    72 		ti->tile = tile;
    74 		ti->type = GetTileType(tile);
    73 		ti->type = GetTileType(tile);
    75 		ti->map5 = _m[tile].m5;
       
    76 		ti->tileh = GetTileSlope(tile, &ti->z);
    74 		ti->tileh = GetTileSlope(tile, &ti->z);
    77 	}
    75 	}
    78 }
    76 }
    79 
    77 
    80 uint GetPartialZ(int x, int y, int corners)
    78 uint GetPartialZ(int x, int y, int corners)