Browse Source

* part of that code was used
* version changedto 0.51

I chyba będę już to releasował.

Michał W. Urbańczyk 17 years ago
parent
commit
10c67209fb
2 changed files with 12 additions and 12 deletions
  1. 1 1
      CMT.cpp
  2. 11 11
      hch/CAmbarCendamo.cpp

+ 1 - 1
CMT.cpp

@@ -57,7 +57,7 @@
 #endif
 
 #define CHUNK 16384
-const char * NAME = "VCMI 0.5 \"Tirion\" Techdemo";
+const char * NAME = "VCMI 0.51 \"Tirion\" Techdemo";
 
 SDL_Surface * ekran, * screen, * screen2;
 TTF_Font * TNRB16, *TNR, *GEOR13, *GEORXX, *GEORM, *GEOR16;

+ 11 - 11
hch/CAmbarCendamo.cpp

@@ -2363,17 +2363,17 @@ borderguardend:
 
 	//assigning defobjinfos
 
-	//for(int ww=0; ww<CGI->objh->objInstances.size(); ++ww)
-	//{
-	//	for(int h=0; h<CGI->dobjinfo->objs.size(); ++h)
-	//	{
-	//		if(CGI->dobjinfo->objs[h].defName==CGI->objh->objInstances[ww]->defInfo->name)
-	//		{
-	//			CGI->objh->objInstances[ww]->defObjInfoNumber = h;
-	//			break;
-	//		}
-	//	}
-	//}
+	for(int ww=0; ww<CGI->objh->objInstances.size(); ++ww)
+	{
+		for(int h=0; h<CGI->dobjinfo->objs.size(); ++h)
+		{
+			if(CGI->dobjinfo->objs[h].defName==CGI->objh->objInstances[ww]->defInfo->name)
+			{
+				CGI->objh->objInstances[ww]->defObjInfoNumber = h;
+				break;
+			}
+		}
+	}
 
 	THC std::cout<<"\tHandling defs: "<<th.getDif()<<std::endl;
 	//for(int ww=0; ww<CGI->objh->objInstances.size(); ++ww)