1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

* it's possible to choose a player

* minor fixes
This commit is contained in:
Michał W. Urbańczyk 2008-02-06 07:33:53 +00:00
parent f0db8760c2
commit e34f9a54c9
5 changed files with 6 additions and 4 deletions

View File

@ -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
{

Binary file not shown.

View File

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

View File

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