aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/FishingHookRenderer.cpp
diff options
context:
space:
mode:
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)