Stopped setting auto-dig on non-default dig designations as auto-dig doesn't work for anything except for the standard 'mine' designation

develop
Najeeb Al-Shabibi 2023-09-22 12:18:38 +01:00
parent 6f45e347af
commit b7fcf035bc
1 changed files with 4 additions and 2 deletions

@ -1489,8 +1489,10 @@ command_result digtype (color_ostream &out, vector <string> & parameters)
baseDes.bits.dig = tile_dig_designation::Default;
}
}
baseOcc.bits.dig_auto = true;
// Auto dig only works on default dig designation. Setting dig_auto for any other designation
// prevents dwarves from digging that tile at all.
if (baseDes.bits.dig == tile_dig_designation::Default) baseOcc.bits.dig_auto = true;
else baseOcc.bits.dig_auto = false;
for( uint32_t z = 0; z < zMax; z++ )
{