fix off by one error

develop
myk002 2021-07-04 07:33:31 -07:00
parent 95fa9f3d7a
commit c1665f35b4
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -70,7 +70,7 @@ struct dig_now_options {
static DFCoord getMapSize() { static DFCoord getMapSize() {
uint32_t endx, endy, endz; uint32_t endx, endy, endz;
Maps::getTileSize(endx, endy, endz); Maps::getTileSize(endx, endy, endz);
return DFCoord(endx, endy, endz); return DFCoord(endx - 1, endy - 1, endz - 1);
} }
dig_now_options() : help(false), start(0, 0, 0), end(getMapSize()) { } dig_now_options() : help(false), start(0, 0, 0), end(getMapSize()) { }