[General] Make coding style consistent

pull/249/merge
David Cernat 8 years ago
parent a84cf7c191
commit 34378fbb4f

@ -27,7 +27,7 @@ void ActorPacket::setActorList(BaseActorList *actorList)
void ActorPacket::Packet(RakNet::BitStream *bs, bool send) void ActorPacket::Packet(RakNet::BitStream *bs, bool send)
{ {
if(!PacketHeader(bs, send)) if (!PacketHeader(bs, send))
return; return;
BaseActor actor; BaseActor actor;

@ -10,7 +10,7 @@ PacketActorList::PacketActorList(RakNet::RakPeerInterface *peer) : ActorPacket(p
void PacketActorList::Packet(RakNet::BitStream *bs, bool send) void PacketActorList::Packet(RakNet::BitStream *bs, bool send)
{ {
if(!ActorPacket::PacketHeader(bs, send)) if (!ActorPacket::PacketHeader(bs, send))
return; return;
RW(actorList->action, send); RW(actorList->action, send);

@ -21,7 +21,7 @@ void PacketPlayerPosition::Packet(RakNet::BitStream *bs, bool send)
float rot[2]; float rot[2];
unsigned char dir; unsigned char dir;
if(send) if (send)
{ {
rot[0] = player->position.rot[0] * 0.1f; rot[0] = player->position.rot[0] * 0.1f;
rot[1] = player->position.rot[2] * 0.1f; rot[1] = player->position.rot[2] * 0.1f;
@ -35,7 +35,7 @@ void PacketPlayerPosition::Packet(RakNet::BitStream *bs, bool send)
RW(player->position.pos, send, 1); RW(player->position.pos, send, 1);
RW(dir, send); RW(dir, send);
if(!send) if (!send)
{ {
player->position.rot[0] = rot[0] / 0.1f; player->position.rot[0] = rot[0] / 0.1f;
player->position.rot[2] = rot[1] / 0.1f; player->position.rot[2] = rot[1] / 0.1f;

@ -12,7 +12,7 @@ PacketContainer::PacketContainer(RakNet::RakPeerInterface *peer) : WorldPacket(p
void PacketContainer::Packet(RakNet::BitStream *bs, bool send) void PacketContainer::Packet(RakNet::BitStream *bs, bool send)
{ {
if(!PacketHeader(bs, send)) if (!PacketHeader(bs, send))
return; return;
RW(event->action, send); RW(event->action, send);

@ -28,7 +28,7 @@ void WorldPacket::setEvent(BaseEvent *event)
void WorldPacket::Packet(RakNet::BitStream *bs, bool send) void WorldPacket::Packet(RakNet::BitStream *bs, bool send)
{ {
if(!PacketHeader(bs, send)) if (!PacketHeader(bs, send))
return; return;
WorldObject worldObject; WorldObject worldObject;
@ -61,7 +61,7 @@ bool WorldPacket::PacketHeader(RakNet::BitStream *bs, bool send)
return false; return false;
} }
if(hasCellData) if (hasCellData)
{ {
RW(event->cell.mData, send, 1); RW(event->cell.mData, send, 1);
RW(event->cell.mName, send, 1); RW(event->cell.mName, send, 1);

Loading…
Cancel
Save