Browse Source

* it's possible to choose a player
* minor fixes

Michał W. Urbańczyk 18 years ago
parent
commit
e34f9a54c9
5 changed files with 6 additions and 4 deletions
  1. 1 1
      CAdvmapInterface.cpp
  2. 1 1
      CMT.cpp
  3. BIN
      CPreGame.cpp
  4. 2 0
      StartInfo.h
  5. 2 2
      config/townsDefs.txt

+ 1 - 1
CAdvmapInterface.cpp

@@ -32,7 +32,7 @@ CAdvMapInt::~CAdvMapInt()
 }
 CMinimap::CMinimap(bool draw)
 {
-	statusbarTxt = CGI->preth->zelp[291].first;
+	statusbarTxt = CGI->preth->zelp[291].first;  
 	rcText = CGI->preth->zelp[291].second;
 	pos.x=630;
 	pos.y=26;

+ 1 - 1
CMT.cpp

@@ -774,7 +774,7 @@ int _tmain(int argc, _TCHAR* argv[])
 		for (int i=0; i<cgi->scenarioOps.playerInfos.size();i++) //initializing interfaces
 		{ 
 
-			if(cgi->scenarioOps.playerInfos[i].name=="Computer")
+			if(!cgi->scenarioOps.playerInfos[i].human)
 				cgi->playerint.push_back(static_cast<CGameInterface*>(CAIHandler::getNewAI(new CCallback(cgi->state,cgi->scenarioOps.playerInfos[i].color),"EmptyAI.dll")));
 			else 
 			{

BIN
CPreGame.cpp


+ 2 - 0
StartInfo.h

@@ -15,8 +15,10 @@ struct StartInfo
 		std::string heroName;
 		Ebonus bonus; 
 		Ecolor color; //from 0 - 
+		int serial;
 		int handicap;//0-no, 1-mild, 2-severe
 		std::string name;
+		bool human;
 	};
 	int difficulty; //0=easy; 4=impossible
 	std::vector<PlayerSettings> playerInfos;

+ 2 - 2
config/townsDefs.txt

@@ -1,4 +1,4 @@
-8
+9
 AVCCAST0.DEF
 AVCRAMP0.DEF
 AVCTOWR0.DEF
@@ -16,4 +16,4 @@ AVCNECZ0.DEF
 AVCDUNZ0.DEF
 AVCSTRZ0.DEF
 AVCFORZ0.DEF
-AVCHFORZ0.DEF
+AVCHFORZ.DEF