equal
deleted
inserted
replaced
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) |