mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Reduce usage of implicit conversions to int
This commit is contained in:
@@ -164,7 +164,7 @@ EDiggingStatus TerrainTile::getDiggingStatus(const bool excludeTop) const
|
||||
return EDiggingStatus::WRONG_TERRAIN;
|
||||
|
||||
int allowedBlocked = excludeTop ? 1 : 0;
|
||||
if(blockingObjects.size() > allowedBlocked || topVisitableObj(excludeTop))
|
||||
if(blockingObjects.size() > allowedBlocked || topVisitableObj(excludeTop).hasValue())
|
||||
return EDiggingStatus::TILE_OCCUPIED;
|
||||
else
|
||||
return EDiggingStatus::CAN_DIG;
|
||||
|
||||
Reference in New Issue
Block a user