summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol14x.cpp
diff options
context:
space:
mode:
authorjfhumann <j.f.humann@gmail.com>2014-04-18 22:20:24 +0200
committerjfhumann <j.f.humann@gmail.com>2014-04-18 22:20:24 +0200
commitfde1555352727387cefe90c3393ef352475ffa20 (patch)
treeb13b1a18d61dfabdd47c3e9eb89fdc9ae84cd8f7 /src/Protocol/Protocol14x.cpp
parentMerge remote-tracking branch 'origin/master' into fixes (diff)
downloadcuberite-fde1555352727387cefe90c3393ef352475ffa20.tar
cuberite-fde1555352727387cefe90c3393ef352475ffa20.tar.gz
cuberite-fde1555352727387cefe90c3393ef352475ffa20.tar.bz2
cuberite-fde1555352727387cefe90c3393ef352475ffa20.tar.lz
cuberite-fde1555352727387cefe90c3393ef352475ffa20.tar.xz
cuberite-fde1555352727387cefe90c3393ef352475ffa20.tar.zst
cuberite-fde1555352727387cefe90c3393ef352475ffa20.zip
Diffstat (limited to 'src/Protocol/Protocol14x.cpp')
-rw-r--r--src/Protocol/Protocol14x.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Protocol/Protocol14x.cpp b/src/Protocol/Protocol14x.cpp
index d6a103d35..f60e756fd 100644
--- a/src/Protocol/Protocol14x.cpp
+++ b/src/Protocol/Protocol14x.cpp
@@ -103,9 +103,9 @@ void cProtocol142::SendPickupSpawn(const cPickup & a_Pickup)
WriteInt (a_Pickup.GetUniqueID());
WriteItem (a_Pickup.GetItem());
WriteVectorI((Vector3i)(a_Pickup.GetPosition() * 32));
- WriteChar((char) (a_Pickup.GetSpeedX() * 8));
- WriteChar((char) (a_Pickup.GetSpeedY() * 8));
- WriteChar((char) (a_Pickup.GetSpeedZ() * 8));
+ WriteChar((char)(a_Pickup.GetSpeedX() * 8));
+ WriteChar((char)(a_Pickup.GetSpeedY() * 8));
+ WriteChar((char)(a_Pickup.GetSpeedZ() * 8));
Flush();
}
@@ -171,8 +171,8 @@ void cProtocol146::SendPickupSpawn(const cPickup & a_Pickup)
WriteInt ((int)(a_Pickup.GetPosZ() * 32));
WriteInt (1);
WriteShort((short)(a_Pickup.GetSpeedX() * 32));
- WriteShort((short) (a_Pickup.GetSpeedY() * 32));
- WriteShort((short) (a_Pickup.GetSpeedZ() * 32));
+ WriteShort((short)(a_Pickup.GetSpeedY() * 32));
+ WriteShort((short)(a_Pickup.GetSpeedZ() * 32));
WriteByte(0);
WriteByte(0);