aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/FishingHookRenderer.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 17:10:34 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 17:10:34 +0700
commit07ad68bc156b3ab70401723bb074a29588ad3cb7 (patch)
treefcd5c35bb393920e46af6c9b643d0544e78b5ab8 /Minecraft.Client/FishingHookRenderer.cpp
parent7bee4770df1540c2daf3121c0790332fb41e72dd (diff)
dynamic_pointer_cast -> std::dynamic_pointer_cast
Diffstat (limited to 'Minecraft.Client/FishingHookRenderer.cpp')
-rw-r--r--Minecraft.Client/FishingHookRenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.Client/FishingHookRenderer.cpp b/Minecraft.Client/FishingHookRenderer.cpp
index a746db18..e672ce70 100644
--- a/Minecraft.Client/FishingHookRenderer.cpp
+++ b/Minecraft.Client/FishingHookRenderer.cpp
@@ -11,7 +11,7 @@
void FishingHookRenderer::render(std::shared_ptr<Entity> _hook, double x, double y, double z, float rot, float a)
{
// 4J - dynamic cast required because we aren't using templates/generics in our version
- std::shared_ptr<FishingHook> hook = dynamic_pointer_cast<FishingHook>(_hook);
+ std::shared_ptr<FishingHook> hook = std::dynamic_pointer_cast<FishingHook>(_hook);
glPushMatrix();
@@ -62,7 +62,7 @@ void FishingHookRenderer::render(std::shared_ptr<Entity> _hook, double x, double
double xp = hook->owner->xo + (hook->owner->x - hook->owner->xo) * a + vv->x;
double yp = hook->owner->yo + (hook->owner->y - hook->owner->yo) * a + vv->y;
double zp = hook->owner->zo + (hook->owner->z - hook->owner->zo) * a + vv->z;
- double yOffset = hook->owner != dynamic_pointer_cast<Player>(Minecraft::GetInstance()->player) ? hook->owner->getHeadHeight() : 0;
+ double yOffset = hook->owner != std::dynamic_pointer_cast<Player>(Minecraft::GetInstance()->player) ? hook->owner->getHeadHeight() : 0;
// 4J-PB - changing this to be per player
//if (this->entityRenderDispatcher->options->thirdPersonView)