1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Clients report their PIDs so the memory usage can be monitored.

This commit is contained in:
Michał W. Urbańczyk
2011-10-23 00:50:00 +00:00
parent 92e508fe1f
commit 8de4a4aef2
5 changed files with 27 additions and 8 deletions

View File

@ -448,6 +448,7 @@ void CClient::newDuel(CConnection *con, StartInfo *si)
ui8 color;
std::string battleAIName;
*serv << getMyPid();
*serv >> *si >> battleAIName >> color;
assert(si->mode == StartInfo::DUEL);
assert(color > 1); //we are NOT participants