| 26 | REQUIRE_GLOBAL(cursor); |
| 27 | |
| 28 | static void clean_mud_safely(df::block_square_event_material_spatterst *spatter, |
| 29 | const df::coord &block_pos, const df::coord &offset) |
| 30 | { |
| 31 | df::coord pos = block_pos + offset; |
| 32 | auto bld = Buildings::findAtTile(pos); |
| 33 | if (!bld || bld->getType() != building_type::FarmPlot) |
| 34 | spatter->amount[offset.x][offset.y] = 0; |
| 35 | } |
| 36 | |
| 37 | command_result cleanmap (color_ostream &out, bool snow, bool mud, bool item_spatter) |
| 38 | { |