mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Fix: Get rid of 'Tile is not visible' error message
This commit is contained in:
committed by
Andrii Danylchenko
parent
ccfa6359ad
commit
ea2931c6ea
@ -2457,8 +2457,8 @@ PlayerColor CGameState::checkForStandardWin() const
|
||||
bool CGameState::checkForStandardLoss( PlayerColor player ) const
|
||||
{
|
||||
//std loss condition is: player lost all towns and heroes
|
||||
const PlayerState &p = *CGameInfoCallback::getPlayerState(player);
|
||||
return !p.heroes.size() && !p.towns.size();
|
||||
const PlayerState & pState = *CGameInfoCallback::getPlayerState(player);
|
||||
return pState.checkVanquished();
|
||||
}
|
||||
|
||||
struct statsHLP
|
||||
|
Reference in New Issue
Block a user