Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast"
This reverts commit 07ad68bc15.
This commit is contained in:
@@ -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 = std::dynamic_pointer_cast<FishingHook>(_hook);
|
||||
std::shared_ptr<FishingHook> hook = 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 != std::dynamic_pointer_cast<Player>(Minecraft::GetInstance()->player) ? hook->owner->getHeadHeight() : 0;
|
||||
double yOffset = hook->owner != dynamic_pointer_cast<Player>(Minecraft::GetInstance()->player) ? hook->owner->getHeadHeight() : 0;
|
||||
|
||||
// 4J-PB - changing this to be per player
|
||||
//if (this->entityRenderDispatcher->options->thirdPersonView)
|
||||
|
||||
Reference in New Issue
Block a user