equal
deleted
inserted
replaced
336 } |
336 } |
337 |
337 |
338 /* do middle part of bridge */ |
338 /* do middle part of bridge */ |
339 if (flags & DC_EXEC) { |
339 if (flags & DC_EXEC) { |
340 _map5[ti.tile] = (byte)(m5 | direction | rail_or_road); |
340 _map5[ti.tile] = (byte)(m5 | direction | rail_or_road); |
341 _map_type_and_height[ti.tile] &= ~0xF0; |
341 SetTileType(ti.tile, MP_TUNNELBRIDGE); |
342 _map_type_and_height[ti.tile] |= MP_TUNNELBRIDGE << 4; |
|
343 |
342 |
344 //bridges pieces sequence (middle parts) |
343 //bridges pieces sequence (middle parts) |
345 // bridge len 1: 0 |
344 // bridge len 1: 0 |
346 // bridge len 2: 0 1 |
345 // bridge len 2: 0 1 |
347 // bridge len 3: 0 4 1 |
346 // bridge len 3: 0 4 1 |
781 } else { |
780 } else { |
782 if (!(m5 & 0x18)) goto clear_it; |
781 if (!(m5 & 0x18)) goto clear_it; |
783 new_data = 0x6000; |
782 new_data = 0x6000; |
784 } |
783 } |
785 |
784 |
786 _map_type_and_height[c] &= 0x0F; |
785 SetTileType(c, new_data >> 12); |
787 _map_type_and_height[c] |= new_data >> 8; |
|
788 _map5[c] = (byte)new_data; |
786 _map5[c] = (byte)new_data; |
789 _map2[c] = 0; |
787 _map2[c] = 0; |
790 |
788 |
791 MarkTileDirtyByTile(c); |
789 MarkTileDirtyByTile(c); |
792 |
790 |