void C4Network2Players::SendUpdatedPlayers() { // check all clients for update C4ClientPlayerInfos *pUpdInfo; int i=0; while ((pUpdInfo = rInfoList.GetIndexedInfo(i++))) if (pUpdInfo->IsUpdated()) { pUpdInfo->ResetUpdated(); C4ControlPlayerInfo *pkSend = new C4ControlPlayerInfo(*pUpdInfo); // send info to all ::Control.DoInput(CID_PlrInfo, pkSend, CDT_Direct); } }
void C4Network2Players::ResetUpdatedPlayers() { // mark all client packets as up-to-date C4ClientPlayerInfos *pUpdInfo; int i=0; while ((pUpdInfo = rInfoList.GetIndexedInfo(i++))) pUpdInfo->ResetUpdated(); }