浏览代码

* Fixed game crash when doing "NEW GAME" -> "SINGLE SCENARIO" -> "Show Advanced Options"
* Fixed bug. If you select town/hero and resource bonus and after that select random town the hero and bonus aren't set to random. Same for hero -> artifact bonus
* Fixed two typos in error messages

Ste 18 年之前
父节点
当前提交
314fd8e20e
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      CLodHandler.cpp
  2. 二进制
      CPreGame.cpp
  3. 1 1
      CPreGame.h

+ 2 - 2
CLodHandler.cpp

@@ -280,7 +280,7 @@ SDL_Surface * CLodHandler::loadBitmap(std::string fname)
 	}
 	if(index==-1)
 	{
-		std::cout<<"File "<<fname<<" did't found"<<std::endl;
+		std::cout<<"File "<<fname<<" not found"<<std::endl;
 	}
 	FLOD.seekg(entries[index].offset,std::ios_base::beg);
 	if (entries[index].size==0) //file is not compressed
@@ -295,7 +295,7 @@ SDL_Surface * CLodHandler::loadBitmap(std::string fname)
 		int res=infs2(pcd,entries[index].size,entries[index].realSize,pcx);
 		if(res!=0)
 		{
-			std::cout<<"an error "<<res<<" ocured during extracting file "<<fname<<std::endl;
+			std::cout<<"an error "<<res<<" occured while extracting file "<<fname<<std::endl;
 		}
 	}
 	CPCXConv cp;

二进制
CPreGame.cpp


+ 1 - 1
CPreGame.h

@@ -114,7 +114,7 @@ public:
 	void init();
 	std::string gdiff(std::string ss);
 	void printMaps(int from,int to=18, int at=0, bool abs=false);
-	void select(int which);
+	void select(int which, bool updateMapsList=true);
 	void moveByOne(bool up);
 	void printSelectedInfo();
 	MapSel();