| 116 | // Apply scroll whilst maintaining boundaries |
| 117 | template<typename T> |
| 118 | static void apply_scroll(T* out, T diff, T min, T max) { |
| 119 | *out = std::min(std::max(*out + diff, min), max); |
| 120 | } |
| 121 | |
| 122 | // Scroll main fortress/adventure world views |
| 123 | static void scroll_dwarfmode(int xdiff, int ydiff) { |
no outgoing calls
no test coverage detected