From d965a71464407f163596a4ae5c41f5159cfd3302 Mon Sep 17 00:00:00 2001 From: Chase Cooper Date: Thu, 5 Mar 2026 17:43:29 -0500 Subject: [PATCH] Replaced every C-style cast with C++ ones --- Minecraft.World/Boat.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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