From 49d05ba9aa1cd5c1f3ae96546283e6d03a037ff7 Mon Sep 17 00:00:00 2001 From: Spp Date: Wed, 7 Apr 2010 22:59:46 +0200 Subject: Code style (game + scripts only): "( " --> "(" " )" --> ")" --HG-- branch : trunk --- src/game/UpdateData.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/game/UpdateData.cpp') 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(0, pSize); Compress(const_cast(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; -- cgit v1.2.3