diff options
| author | Robert Heinrich | 2012-04-23 00:34:19 +0200 |
|---|---|---|
| committer | Robert Heinrich | 2012-04-23 00:34:19 +0200 |
| commit | e1770fa62bebf1fe3fc4af7a6dbd9c7260b51c6e (patch) | |
| tree | 32a1df205527f6158eaeed9d1e96d9d2aced0f8d /plugins/regrass.cpp | |
| parent | 045b7b6a20df6d1d9ab4a85e81f95569735cdbff (diff) | |
| download | dfhack-e1770fa62bebf1fe3fc4af7a6dbd9c7260b51c6e.tar.gz dfhack-e1770fa62bebf1fe3fc4af7a6dbd9c7260b51c6e.tar.bz2 dfhack-e1770fa62bebf1fe3fc4af7a6dbd9c7260b51c6e.tar.xz | |
regrass: leaves tiles with the no_grow flag alone (avoids regrassing roads etc you embark on)
Diffstat (limited to 'plugins/regrass.cpp')
| -rw-r--r-- | plugins/regrass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/regrass.cpp b/plugins/regrass.cpp index 64aa3a47..5475862a 100644 --- a/plugins/regrass.cpp +++ b/plugins/regrass.cpp @@ -83,7 +83,8 @@ command_result df_regrass (color_ostream &out, vector <string> & parameters) { if ( tileShape(cur->tiletype[x][y]) != tiletype_shape::FLOOR || cur->designation[x][y].bits.subterranean - || cur->occupancy[x][y].bits.building) + || cur->occupancy[x][y].bits.building + || cur->occupancy[x][y].bits.no_grow) continue; // don't touch furrowed tiles (dirt roads made on soil) |
