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:
parent
f0db8760c2
commit
e34f9a54c9
2
CMT.cpp
2
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
BIN
CPreGame.cpp
Binary file not shown.
@ -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;
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user