| 175 | } |
| 176 | |
| 177 | static bool is_in_range(const coord_range &target, df::coord pos) |
| 178 | { |
| 179 | return target.first.isValid() && target.second.isValid() && |
| 180 | target.first.x <= pos.x && pos.x <= target.second.x && |
| 181 | target.first.y <= pos.y && pos.y <= target.second.y && |
| 182 | target.first.z <= pos.z && pos.z <= target.second.z; |
| 183 | } |
| 184 | |
| 185 | static std::pair<int, int> get_engine_range(df::building_siegeenginest *bld, float quality) |
| 186 | { |
no test coverage detected