| 632 | } |
| 633 | |
| 634 | void CopyMat(RemoteFortressReader::MatPair * mat, int type, int index) |
| 635 | { |
| 636 | if (type >= MaterialInfo::FIGURE_BASE && type < MaterialInfo::PLANT_BASE) |
| 637 | { |
| 638 | df::historical_figure * figure = df::historical_figure::find(index); |
| 639 | if (figure) |
| 640 | { |
| 641 | type -= MaterialInfo::GROUP_SIZE; |
| 642 | index = figure->race; |
| 643 | } |
| 644 | } |
| 645 | mat->set_mat_type(type); |
| 646 | mat->set_mat_index(index); |
| 647 | |
| 648 | } |
| 649 | |
| 650 | std::map<DFCoord, uint16_t> hashes; |
| 651 |
no test coverage detected