mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
- added new files to build system
- minor gcc fixes - updated castle interface code, added missing parts including #380 - buildings enum in global.h
This commit is contained in:
@ -1867,6 +1867,8 @@ int CGTownInstance::creatureGrowth(const int & level) const
|
||||
{
|
||||
if (level<0 || level >=CREATURES_PER_TOWN)
|
||||
return 0;
|
||||
if (!vstd::contains(builtBuildings, Buildings::DWELL_FIRST+level))
|
||||
return 0; //no dwelling
|
||||
TCreature creid = town->basicCreatures[level];
|
||||
|
||||
int ret = VLC->creh->creatures[creid]->growth;
|
||||
|
Reference in New Issue
Block a user