| 1755 | } |
| 1756 | |
| 1757 | void Seat::tileMarkedDiggingNotifiedToPlayer(Tile* tile, bool isDigSet) |
| 1758 | { |
| 1759 | if(getPlayer() == nullptr) |
| 1760 | return; |
| 1761 | if(!getPlayer()->getIsHuman()) |
| 1762 | return; |
| 1763 | |
| 1764 | if(tile->getX() >= static_cast<int>(mTilesStates.size())) |
| 1765 | { |
| 1766 | OD_LOG_ERR("Tile=" + Tile::displayAsString(tile)); |
| 1767 | return; |
| 1768 | } |
| 1769 | if(tile->getY() >= static_cast<int>(mTilesStates[tile->getX()].size())) |
| 1770 | { |
| 1771 | OD_LOG_ERR("Tile=" + Tile::displayAsString(tile)); |
| 1772 | return; |
| 1773 | } |
| 1774 | |
| 1775 | TileStateNotified& tileState = mTilesStates[tile->getX()][tile->getY()]; |
| 1776 | tileState.mMarkedForDigging = isDigSet; |
| 1777 | } |
| 1778 | |
| 1779 | bool Seat::isTileDiggableForClient(Tile* tile) const |
| 1780 | { |
no test coverage detected