message: Use directionEnumToOffset in onDiggerSelectionDialog
diff: @@ -606,25 +606,12 @@ void MapViewState::onDiggerSelectionDialog(Direction direction, Tile* tile)
  robot->direction(direction);
  -
  - if (direction == Direction::North)
  - {
  - mTileMap->getTile({tile->xy() + DirectionNorth, tile->depth()}).excavated(true);
  - }
  - else if (direction == Direction::South)
  - {
  - mTileMap->getTile({tile->xy() + DirectionSouth, tile->depth()}).excavated(true);
  - }
  - else if (direction == Direction::East)
  - {
  - mTileMap->getTile({tile->xy() + DirectionEast, tile->depth()}).excavated(true);
  - }
  - else if (direction == Direction::West)
  + const auto directionOffset = directionEnumToOffset(direction);
  + if (directionOffset != DirectionCenter)
  {
  - mTileMap->getTile({tile->xy() + DirectionWest, tile->depth()}).excavated(true);
  + mTileMap->getTile({tile->xy() + directionOffset, tile->depth()}).excavated(true);
  }
  -
  if (!mRobotPool.robotAvailable(Robot::Type::Digger))
  {
  mRobots.removeItem(constants::Robodigger);
  