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

Function clearTargetArea

plugins/siege-engine.cpp:533–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533static void clearTargetArea(df::building_siegeenginest *bld)
534{
535 CHECK_NULL_POINTER(bld);
536
537 if (auto engine = find_engine(bld))
538 engine->target = coord_range();
539
540 auto key = stl_sprintf("siege-engine/target/%d", bld->id);
541 World::DeletePersistentData(World::GetPersistentData(key));
542}
543
544static bool setTargetArea(df::building_siegeenginest *bld, df::coord target_min, df::coord target_max)
545{

Callers

nothing calls this directly

Calls 2

find_engineFunction · 0.85
stl_sprintfFunction · 0.85

Tested by

no test coverage detected