瀏覽代碼

* added giving default buildings in towns
* town infobox won't crash on empty town
* version changed to 0.53b

Michał W. Urbańczyk 17 年之前
父節點
當前提交
06c193498e
共有 3 個文件被更改,包括 8 次插入2 次删除
  1. 1 1
      CMT.cpp
  2. 2 1
      CPlayerInterface.cpp
  3. 5 0
      hch/CAmbarCendamo.cpp

+ 1 - 1
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;

+ 2 - 1
CPlayerInterface.cpp

@@ -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++)

+ 5 - 0
hch/CAmbarCendamo.cpp

@@ -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);