mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Grail digging check is now in library
This commit is contained in:
@@ -1901,11 +1901,8 @@ void CPlayerInterface::acceptTurn()
|
||||
void CPlayerInterface::tryDiggging(const CGHeroInstance * h)
|
||||
{
|
||||
int msgToShow = -1;
|
||||
const bool isBlocked = CGI->mh->hasObjectHole(h->visitablePos()); // Don't dig in the pit.
|
||||
|
||||
const auto diggingStatus = isBlocked
|
||||
? EDiggingStatus::TILE_OCCUPIED
|
||||
: h->diggingStatus().num;
|
||||
const auto diggingStatus = h->diggingStatus();
|
||||
|
||||
switch(diggingStatus)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user