1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Mines and object visitable once per week working.

This commit is contained in:
Michał W. Urbańczyk
2008-07-31 10:35:22 +00:00
parent 03287540c7
commit 28d5c184a9
8 changed files with 121 additions and 112 deletions

View File

@@ -73,6 +73,8 @@ std::string toString(MetaString &ms)
case 8:
vec = &CGI->objh->creGens;
break;
case 11:
vec = &CGI->objh->advobtxt;
}
ret += (*vec)[ser];
}
@@ -179,7 +181,11 @@ void CClient::process(int what)
{
InfoWindow iw;
*serv >> iw;
std::vector<Component*> comps;
for(int i=0;i<iw.components.size();i++)
comps.push_back(&iw.components[i]);
playerint[iw.player]->showInfoDialog(toString(iw.text),comps);
break;
}
case 501: //hero movement response - we have to notify interfaces and callback
{