MCPcopy Create free account
hub / github.com/DFHack/dfhack / apply_scroll

Function apply_scroll

plugins/edgescroll.cpp:118–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116// Apply scroll whilst maintaining boundaries
117template<typename T>
118static 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
123static void scroll_dwarfmode(int xdiff, int ydiff) {

Callers 2

scroll_dwarfmodeFunction · 0.85
scroll_world_internalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected