| 650 | std::map<DFCoord, uint16_t> hashes; |
| 651 | |
| 652 | bool IsTiletypeChanged(DFCoord pos) |
| 653 | { |
| 654 | uint16_t hash; |
| 655 | df::map_block * block = Maps::getBlock(pos); |
| 656 | if (block) |
| 657 | hash = fletcher16((uint8_t*)(block->tiletype), 16 * 16 * (sizeof(df::enums::tiletype::tiletype))); |
| 658 | else |
| 659 | hash = 0; |
| 660 | if (hashes[pos] != hash) |
| 661 | { |
| 662 | hashes[pos] = hash; |
| 663 | return true; |
| 664 | } |
| 665 | return false; |
| 666 | } |
| 667 | |
| 668 | std::map<DFCoord, uint16_t> waterHashes; |
| 669 |
no test coverage detected