diff options
author | Spp <none@none> | 2010-04-07 22:59:46 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 22:59:46 +0200 |
commit | 49d05ba9aa1cd5c1f3ae96546283e6d03a037ff7 (patch) | |
tree | f7e6135573366a686c1f527e16a0a7d42a7877ff /src/game/UpdateData.cpp | |
parent | d19e12708001fbef2308be0e8cb5375a2ac7af48 (diff) |
Code style (game + scripts only):
"( " --> "("
" )" --> ")"
--HG--
branch : trunk
Diffstat (limited to 'src/game/UpdateData.cpp')
-rw-r--r-- | src/game/UpdateData.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/UpdateData.cpp b/src/game/UpdateData.cpp index cc3ae62db09..68f0501f304 100644 --- a/src/game/UpdateData.cpp +++ b/src/game/UpdateData.cpp @@ -126,23 +126,23 @@ bool UpdateData::BuildPacket(WorldPacket *packet) size_t pSize = buf.wpos(); // use real used data size - if (pSize > 100 ) // compress large packets + if (pSize > 100) // compress large packets { uint32 destsize = compressBound(pSize); - packet->resize( destsize + sizeof(uint32) ); + packet->resize(destsize + sizeof(uint32)); packet->put<uint32>(0, pSize); Compress(const_cast<uint8*>(packet->contents()) + sizeof(uint32), &destsize, (void*)buf.contents(), pSize); if (destsize == 0) return false; - packet->resize( destsize + sizeof(uint32) ); - packet->SetOpcode( SMSG_COMPRESSED_UPDATE_OBJECT ); + packet->resize(destsize + sizeof(uint32)); + packet->SetOpcode(SMSG_COMPRESSED_UPDATE_OBJECT); } else // send small packets without compression { - packet->append( buf ); - packet->SetOpcode( SMSG_UPDATE_OBJECT ); + packet->append(buf); + packet->SetOpcode(SMSG_UPDATE_OBJECT); } return true; |