1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

* merged changes in pregame

* portrait initialziaton
* minor
This commit is contained in:
Michał W. Urbańczyk
2008-08-05 22:11:32 +00:00
parent ba59b28be8
commit c7bb04235c
8 changed files with 180 additions and 122 deletions

View File

@@ -146,7 +146,9 @@ CClient::CClient(CConnection *con, StartInfo *si)
ui8 color = gs->scenarioOps->playerInfos[i].color;
CCallback *cb = new CCallback(gs,color,this);
if(!gs->scenarioOps->playerInfos[i].human)
{
playerint[color] = static_cast<CGameInterface*>(CAIHandler::getNewAI(cb,"EmptyAI.dll"));
}
else
{
gs->currentPlayer = color;
@@ -252,8 +254,7 @@ void CClient::process(int what)
{
for(std::set<int3>::iterator i=th->fowRevealed.begin(); i != th->fowRevealed.end(); i++)
playerint[player]->tileRevealed(*i);
//boost::function<void(int3)> tr = boost::bind(&CGameInterface::tileRevealed,playerint[player]);
//std::for_each(th->fowRevealed.begin(),th->fowRevealed.end(),tr);
//std::for_each(th->fowRevealed.begin(),th->fowRevealed.end(),boost::bind(&CGameInterface::tileRevealed,playerint[player],_1));
}
//notify interfacesabout move