[Gcblue-commits] gcb_wx/src/network tcUpdateMessageHandler.cpp,1.9,1.10
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-05-17 00:39:04
|
Update of /cvsroot/gcblue/gcb_wx/src/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3755/src/network Modified Files: tcUpdateMessageHandler.cpp Log Message: Index: tcUpdateMessageHandler.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/network/tcUpdateMessageHandler.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** tcUpdateMessageHandler.cpp 9 May 2004 20:40:23 -0000 1.9 --- tcUpdateMessageHandler.cpp 17 May 2004 00:38:53 -0000 1.10 *************** *** 321,324 **** --- 321,325 ---- unsigned nAcks = 0; + unsigned nUnknowns = 0; fprintf(stdout, "<< Received obj cmds, time %.1f: ", simState->GetTime()); *************** *** 326,330 **** long id; ! while ((stream >> id).eof() == false) { unsigned int updateSize; --- 327,331 ---- long id; ! while (((stream >> id).eof() == false) && (nUnknowns < 32)) { unsigned int updateSize; *************** *** 347,352 **** { stream.skip_read(updateSize); ! ! fprintf(stdout, "%d(X) ", id); } } --- 348,353 ---- { stream.skip_read(updateSize); ! nUnknowns++; ! fprintf(stdout, "%d(X%d) ", id, nUnknowns); } } *************** *** 517,524 **** fprintf(stdout, "<< Received obj update msg, time %.1f: ", simState->GetTime()); ! long id; ! while ((stream >> id).eof() == false) { unsigned int updateSize; --- 518,526 ---- fprintf(stdout, "<< Received obj update msg, time %.1f: ", simState->GetTime()); ! ! unsigned nUnknowns = 0; long id; ! while (((stream >> id).eof() == false) && (nUnknowns < 64)) { unsigned int updateSize; *************** *** 537,540 **** --- 539,543 ---- { missingIds.push(id); + nUnknowns++; fprintf(stdout, "%d(X) ", id); stream.skip_read(updateSize); |