فهرست منبع

Ta, uniezależnij, a kto zrobi obsługę kompresji 2?

Uzależniłem co trzeba, jednak twój talent psucia znów się ujawnił - zamiast mapy dostaję czarne tło...

przy okazji drobny bugfix
mateuszb 18 سال پیش
والد
کامیت
674f1f8a62
4فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 1 1
      CAmbarCendamo.cpp
  2. 3 3
      CMT.cpp
  3. 1 1
      mapHandler.cpp
  4. 1 1
      mapHandler.h

+ 1 - 1
CAmbarCendamo.cpp

@@ -1783,7 +1783,7 @@ EDefType CAmbarCendamo::getDefType(DefInfo &a)
 		return EDefType::EVENTOBJ_DEF; //handled
 		return EDefType::EVENTOBJ_DEF; //handled
 	case 33:
 	case 33:
 		return EDefType::GARRISON_DEF; //handled
 		return EDefType::GARRISON_DEF; //handled
-	case 34: case 70: //70 - random hero
+	case 34: case 70: case 62: //70 - random hero //62 - prison
 		return EDefType::HERO_DEF; //handled
 		return EDefType::HERO_DEF; //handled
 	case 36:
 	case 36:
 		return EDefType::GRAIL_DEF; //hanled
 		return EDefType::GRAIL_DEF; //hanled

+ 3 - 3
CMT.cpp

@@ -228,7 +228,7 @@ int _tmain(int argc, _TCHAR* argv[])
 			// well, there's no music, but most games don't break without music...
 			// well, there's no music, but most games don't break without music...
 		}*/
 		}*/
 
 
-		screen = SDL_SetVideoMode(800,600,24,SDL_HWSURFACE|SDL_DOUBLEBUF/*|SDL_FULLSCREEN*/);
+		screen = SDL_SetVideoMode(800,600,24,SDL_SWSURFACE|SDL_DOUBLEBUF/*|SDL_FULLSCREEN*/);
 		ekran = screen;
 		ekran = screen;
 		//FILE * zr = fopen("mal.txt","r");
 		//FILE * zr = fopen("mal.txt","r");
 		//FILE * ko = fopen("wyn.txt","w");
 		//FILE * ko = fopen("wyn.txt","w");
@@ -331,11 +331,11 @@ int _tmain(int argc, _TCHAR* argv[])
 		{
 		{
 			initTable[ss] = mapstr[ss];
 			initTable[ss] = mapstr[ss];
 		}
 		}
-//#define CHOOSE
+#define CHOOSE
 #ifdef CHOOSE
 #ifdef CHOOSE
 		CAmbarCendamo * ac = new CAmbarCendamo(initTable); //4gryf
 		CAmbarCendamo * ac = new CAmbarCendamo(initTable); //4gryf
 #else
 #else
-		CAmbarCendamo * ac = new CAmbarCendamo("4gryf"); //4gryf
+		CAmbarCendamo * ac = new CAmbarCendamo("1smok"); //4gryf
 #endif
 #endif
 		CMapHeader * mmhh = new CMapHeader(ac->bufor); //czytanie nag³ówka
 		CMapHeader * mmhh = new CMapHeader(ac->bufor); //czytanie nag³ówka
 		cgi->ac = ac;
 		cgi->ac = ac;

+ 1 - 1
mapHandler.cpp

@@ -42,7 +42,7 @@ public:
 void CMapHandler::init()
 void CMapHandler::init()
 {
 {
 	fullHide = CGameInfo::mainObj->spriteh->giveDef("TSHRC.DEF");
 	fullHide = CGameInfo::mainObj->spriteh->giveDef("TSHRC.DEF");
-	partialHide = CGameInfo::mainObj->spriteh->giveDef("TSHRE.DEF");
+	partialHide = CGameInfo::mainObj->sspriteh->giveDef("TSHRE.DEF");
 
 
 	for(int i=0; i<partialHide->ourImages.size(); ++i)
 	for(int i=0; i<partialHide->ourImages.size(); ++i)
 	{
 	{

+ 1 - 1
mapHandler.h

@@ -25,7 +25,7 @@ public:
 	SDL_Surface * terrBitmap(int x, int y);
 	SDL_Surface * terrBitmap(int x, int y);
 	SDL_Surface * undTerrBitmap(int x, int y);
 	SDL_Surface * undTerrBitmap(int x, int y);
 	CDefHandler * fullHide;
 	CDefHandler * fullHide;
-	CDefHandler * partialHide;
+	CSemiDefHandler * partialHide;
 
 
 	std::vector< std::vector<char> > visibility; //true means that pointed place is visible
 	std::vector< std::vector<char> > visibility; //true means that pointed place is visible
 	std::vector< std::vector<char> > undVisibility; //true means that pointed place is visible
 	std::vector< std::vector<char> > undVisibility; //true means that pointed place is visible