| 686 | std::map<DFCoord, uint8_t> buildingHashes; |
| 687 | |
| 688 | bool IsBuildingChanged(DFCoord pos) |
| 689 | { |
| 690 | df::map_block * block = Maps::getBlock(pos); |
| 691 | bool changed = false; |
| 692 | for (int x = 0; x < 16; x++) |
| 693 | for (int y = 0; y < 16; y++) |
| 694 | { |
| 695 | auto bld = block->occupancy[x][y].bits.building; |
| 696 | if (buildingHashes[pos] != bld) |
| 697 | { |
| 698 | buildingHashes[pos] = bld; |
| 699 | changed = true; |
| 700 | } |
| 701 | } |
| 702 | return changed; |
| 703 | } |
| 704 | |
| 705 | std::map<DFCoord, uint16_t> spatterHashes; |
| 706 |
nothing calls this directly
no test coverage detected