diff --git a/Minecraft.World/Boat.cpp b/Minecraft.World/Boat.cpp index e33875817..1783a8d90 100644 --- a/Minecraft.World/Boat.cpp +++ b/Minecraft.World/Boat.cpp @@ -224,8 +224,8 @@ void Boat::tick() double yrd = Mth::wrapDegrees(lyr - yRot); - yRot += (float) ( (yrd) / lSteps ); - xRot += (float) ( (lxr - xRot) / lSteps ); + yRot += static_cast((yrd) / lSteps); + xRot += static_cast((lxr - xRot) / lSteps); lSteps--; setPos(xt, yt, zt); @@ -342,7 +342,7 @@ void Boat::tick() double zDiff = zo - z; if (xDiff * xDiff + zDiff * zDiff > 0.001) { - yRotT = (float) (atan2(zDiff, xDiff) * 180 / PI); + yRotT = static_cast(atan2(zDiff, xDiff) * 180 / PI); } double rotDiff = Mth::wrapDegrees(yRotT - yRot); @@ -350,7 +350,7 @@ void Boat::tick() if (rotDiff > 20) rotDiff = 20; if (rotDiff < -20) rotDiff = -20; - yRot += (float) rotDiff; + yRot += static_cast(rotDiff); setRot(yRot, xRot); // Server only code below