mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
Grail digging and construction.
Minor fixes.
This commit is contained in:
@ -1940,8 +1940,11 @@ int CGameState::canBuildStructure( const CGTownInstance *t, int ID )
|
||||
//checking resources
|
||||
CBuilding * pom = VLC->buildh->buildings[t->subID][ID];
|
||||
|
||||
if(!pom)return 8;
|
||||
if(pom->Name().size()==0||pom->resources.size()==0)return 2;//TODO: why does this happen?
|
||||
if(!pom)
|
||||
return 8;
|
||||
|
||||
// if(pom->Name().size()==0||pom->resources.size()==0)
|
||||
// return 2;//TODO: why does this happen?
|
||||
|
||||
for(int res=0;res<pom->resources.size();res++) //TODO: support custom amount of resources
|
||||
{
|
||||
|
Reference in New Issue
Block a user