From 46fef2a18ac6382bcf2c0586faf40a8dfe32420e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 28 Apr 2013 19:40:39 +0000 Subject: Fixed compilation on Linux git-svn-id: http://mc-server.googlecode.com/svn/trunk@1434 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol/Protocol14x.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/Protocol/Protocol14x.cpp') diff --git a/source/Protocol/Protocol14x.cpp b/source/Protocol/Protocol14x.cpp index a3a6755b3..b7d3c91df 100644 --- a/source/Protocol/Protocol14x.cpp +++ b/source/Protocol/Protocol14x.cpp @@ -238,8 +238,8 @@ void cProtocol146::SendSpawnVehicle(const cEntity & a_Vehicle, char a_VehicleTyp WriteInt ((int)(a_Vehicle.GetPosX() * 32)); WriteInt ((int)(a_Vehicle.GetPosY() * 32)); WriteInt ((int)(a_Vehicle.GetPosZ() * 32)); - WriteByte ((BYTE)((a_Vehicle.GetPitch() / 360.f) * 256)); - WriteByte ((BYTE)((a_Vehicle.GetRotation() / 360.f) * 256)); + WriteByte ((Byte)((a_Vehicle.GetPitch() / 360.f) * 256)); + WriteByte ((Byte)((a_Vehicle.GetRotation() / 360.f) * 256)); WriteInt (1); WriteShort((short)(a_Vehicle.GetSpeedX() * 400)); WriteShort((short)(a_Vehicle.GetSpeedY() * 400)); -- cgit v1.2.3