[Opentnl-cvs] tnl/tnl netConnection.cpp,1.3,1.4 tnl.dsp,1.1,1.2 tnlTypes.h,1.5,1.6
Brought to you by:
mark_frohnmayer,
s_alanet
From: Mark F. <mar...@us...> - 2004-05-13 01:46:09
|
Update of /cvsroot/opentnl/tnl/tnl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3940/tnl Modified Files: netConnection.cpp tnl.dsp tnlTypes.h Log Message: Fixed simulated lag parameters in zap Updated VC6 project files Index: tnlTypes.h =================================================================== RCS file: /cvsroot/opentnl/tnl/tnl/tnlTypes.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** tnlTypes.h 10 May 2004 22:34:23 -0000 1.5 --- tnlTypes.h 13 May 2004 01:45:50 -0000 1.6 *************** *** 399,408 **** } ! inline U32 readU32FromBuffer(const U8 *buffer) { ! return (U32(buffer[0]) << 24) | ! (U32(buffer[1]) << 16) | ! (U32(buffer[2]) << 8 ) | ! (U32(buffer[3])); } --- 399,408 ---- } ! inline U32 readU32FromBuffer(const U8 *buf) { ! return (U32(buf[0]) << 24) | ! (U32(buf[1]) << 16) | ! (U32(buf[2]) << 8 ) | ! U32(buf[3]); } *************** *** 416,420 **** { return (U16(buffer[0]) << 8) | ! (U16(buffer[1])); } --- 416,420 ---- { return (U16(buffer[0]) << 8) | ! U16(buffer[1]); } Index: tnl.dsp =================================================================== RCS file: /cvsroot/opentnl/tnl/tnl/tnl.dsp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tnl.dsp 20 Apr 2004 04:27:18 -0000 1.1 --- tnl.dsp 13 May 2004 01:45:50 -0000 1.2 *************** *** 179,182 **** --- 179,186 ---- # Begin Source File + SOURCE=.\journal.cpp + # End Source File + # Begin Source File + SOURCE=.\log.cpp # End Source File *************** *** 271,274 **** --- 275,290 ---- # Begin Source File + SOURCE=.\tnlJournal.h + # End Source File + # Begin Source File + + SOURCE=.\tnlMethodDispatch.cpp + # End Source File + # Begin Source File + + SOURCE=.\tnlMethodDispatch.h + # End Source File + # Begin Source File + SOURCE=.\types.h # End Source File Index: netConnection.cpp =================================================================== RCS file: /cvsroot/opentnl/tnl/tnl/netConnection.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** netConnection.cpp 12 May 2004 01:37:59 -0000 1.3 --- netConnection.cpp 13 May 2004 01:45:50 -0000 1.4 *************** *** 225,228 **** --- 225,234 ---- void NetConnection::readRawPacket(BitStream *bstream) { + if(mSimulatedPacketLoss && Random::readF() < mSimulatedPacketLoss) + { + TNLLogMessageV(LogNetConnection, ("NetConnection %s: RECVDROP - %d", mNetAddress.toString(), getLastSendSequence())); + return; + } + mErrorBuffer[0] = 0; if(readPacketHeader(bstream)) |