| 668 | std::map<DFCoord, uint16_t> waterHashes; |
| 669 | |
| 670 | bool IsDesignationChanged(DFCoord pos) |
| 671 | { |
| 672 | uint16_t hash; |
| 673 | df::map_block * block = Maps::getBlock(pos); |
| 674 | if (block) |
| 675 | hash = fletcher16((uint8_t*)(block->designation), 16 * 16 * (sizeof(df::tile_designation))); |
| 676 | else |
| 677 | hash = 0; |
| 678 | if (waterHashes[pos] != hash) |
| 679 | { |
| 680 | waterHashes[pos] = hash; |
| 681 | return true; |
| 682 | } |
| 683 | return false; |
| 684 | } |
| 685 | |
| 686 | std::map<DFCoord, uint8_t> buildingHashes; |
| 687 |
no test coverage detected