mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
* added giving default buildings in towns
* town infobox won't crash on empty town * version changed to 0.53b
This commit is contained in:
2
CMT.cpp
2
CMT.cpp
@ -62,7 +62,7 @@
|
||||
CGameInfo* CGI;
|
||||
#endif
|
||||
#define CHUNK 16384
|
||||
const char * NAME = "VCMI 0.53 \"Tirion\" Techdemo";
|
||||
const char * NAME = "VCMI 0.53b \"Tirion\" Techdemo";
|
||||
|
||||
SDL_Surface * ekran, * screen, * screen2;
|
||||
extern SDL_Surface * CSDL_Ext::std32bppSurface;
|
||||
|
@ -1421,8 +1421,9 @@ SDL_Surface * CPlayerInterface::drawTownInfoWin(const CGTownInstance * curh)
|
||||
printAt(curh->name,75,15,GEOR13,zwykly,ret);
|
||||
|
||||
int pom = curh->fortLevel() - 1; if(pom<0) pom = 3;
|
||||
blitAt(halls->ourImages[curh->hallLevel()].bitmap,77,42,ret);
|
||||
blitAt(forts->ourImages[pom].bitmap,115,42,ret);
|
||||
if((pom=curh->hallLevel())>=0)
|
||||
blitAt(halls->ourImages[pom].bitmap,77,42,ret);
|
||||
itoa(curh->dailyIncome(),buf,10);
|
||||
printAtMiddle(buf,167,70,GEORM,zwykly,ret);
|
||||
for (std::map<int,std::pair<CCreature*,int> >::const_iterator i=curh->garrison.slots.begin(); i!=curh->garrison.slots.end();i++)
|
||||
|
@ -1729,6 +1729,11 @@ void CAmbarCendamo::deh3m()
|
||||
{
|
||||
nt->builtBuildings.insert(7);
|
||||
}
|
||||
nt->builtBuildings.insert(10);
|
||||
nt->builtBuildings.insert(5);
|
||||
nt->builtBuildings.insert(30);
|
||||
if(rand()%2)
|
||||
nt->builtBuildings.insert(31);
|
||||
}
|
||||
|
||||
nt->setOwner(spec->player);
|
||||
|
Reference in New Issue
Block a user