[Opentnl-cvs] tnl/zap ship.cpp,1.2,1.3
Brought to you by:
mark_frohnmayer,
s_alanet
From: Ben G. <s_a...@us...> - 2004-04-20 08:57:29
|
Update of /cvsroot/opentnl/tnl/zap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9808/zap Modified Files: ship.cpp Log Message: Fixed flag mounting issues. Index: ship.cpp =================================================================== RCS file: /cvsroot/opentnl/tnl/zap/ship.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ship.cpp 20 Apr 2004 08:51:29 -0000 1.2 --- ship.cpp 20 Apr 2004 08:57:21 -0000 1.3 *************** *** 271,274 **** --- 271,276 ---- U32 Ship::packUpdate(GhostConnection *connection, U32 updateMask, BitStream *stream) { + U32 retVal = 0; + if(stream->writeFlag(updateMask & InitialMask)) { *************** *** 289,296 **** --- 291,303 ---- stream->writeInt(index, GhostConnection::GhostIdBitSize); } + else + { + retVal |= InitialMask; + } } } stream->writeFlag(false); } + if(stream->writeFlag(updateMask & HealthMask)) stream->writeFloat(mHealth, 6); *************** *** 322,326 **** } } ! return 0; } --- 329,333 ---- } } ! return retVal; } |