| 935 | }; |
| 936 | |
| 937 | inline df::coord2d getBiomeRgnPos(df::coord2d base, int idx) |
| 938 | { |
| 939 | auto r = base + biome_offsets[idx]; |
| 940 | |
| 941 | int world_width = world->world_data->world_width; |
| 942 | int world_height = world->world_data->world_height; |
| 943 | |
| 944 | return df::coord2d(clip_range(r.x,0,world_width-1),clip_range(r.y,0,world_height-1)); |
| 945 | } |
| 946 | |
| 947 | df::coord2d Maps::getBlockTileBiomeRgn(df::map_block *block, df::coord2d pos) |
| 948 | { |
no test coverage detected