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

Function refresh_adjacent_smooth_walls

plugins/dig-now.cpp:637–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637static void refresh_adjacent_smooth_walls(MapExtras::MapCache &map,
638 const DFCoord &pos) {
639 adjust_smooth_wall_dir(map, DFCoord(pos.x, pos.y-1, pos.z));
640 adjust_smooth_wall_dir(map, DFCoord(pos.x, pos.y+1, pos.z));
641 adjust_smooth_wall_dir(map, DFCoord(pos.x-1, pos.y, pos.z));
642 adjust_smooth_wall_dir(map, DFCoord(pos.x+1, pos.y, pos.z));
643}
644
645// assumes that if the game let you designate a tile for smoothing, it must be
646// valid to do so.

Callers 2

do_digFunction · 0.85

Calls 1

adjust_smooth_wall_dirFunction · 0.85

Tested by

no test coverage detected