aboutsummaryrefslogtreecommitdiff
path: root/src/game/UpdateData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/UpdateData.cpp')
-rw-r--r--src/game/UpdateData.cpp12
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;