mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast"
This reverts commit 07ad68bc15.
This commit is contained in:
parent
07ad68bc15
commit
7ae0c13854
207 changed files with 623 additions and 623 deletions
|
|
@ -35,7 +35,7 @@ void MobRenderer::render(std::shared_ptr<Entity> _mob, double x, double y, doubl
|
|||
{
|
||||
// 4J - added - this used to use generics so the input parameter could be a mob (or derived type), but we aren't
|
||||
// able to do that so dynamically casting to get the more specific type here.
|
||||
std::shared_ptr<Mob> mob = std::dynamic_pointer_cast<Mob>(_mob);
|
||||
std::shared_ptr<Mob> mob = dynamic_pointer_cast<Mob>(_mob);
|
||||
glPushMatrix();
|
||||
glDisable(GL_CULL_FACE);
|
||||
|
||||
|
|
@ -52,9 +52,9 @@ void MobRenderer::render(std::shared_ptr<Entity> _mob, double x, double y, doubl
|
|||
float bodyRot = rotlerp(mob->yBodyRotO, mob->yBodyRot, a);
|
||||
float headRot = rotlerp(mob->yHeadRotO, mob->yHeadRot, a);
|
||||
|
||||
if (mob->isRiding() && std::dynamic_pointer_cast<Mob>(mob->riding))
|
||||
if (mob->isRiding() && dynamic_pointer_cast<Mob>(mob->riding))
|
||||
{
|
||||
std::shared_ptr<Mob> riding = std::dynamic_pointer_cast<Mob>(mob->riding);
|
||||
std::shared_ptr<Mob> riding = dynamic_pointer_cast<Mob>(mob->riding);
|
||||
bodyRot = rotlerp(riding->yBodyRotO, riding->yBodyRot, a);
|
||||
|
||||
float headDiff = Mth::wrapDegrees(headRot - bodyRot);
|
||||
|
|
@ -235,7 +235,7 @@ void MobRenderer::render(std::shared_ptr<Entity> _mob, double x, double y, doubl
|
|||
|
||||
void MobRenderer::renderModel(std::shared_ptr<Entity> mob, float wp, float ws, float bob, float headRotMinusBodyRot, float headRotx, float scale)
|
||||
{
|
||||
std::shared_ptr<Player> player = std::dynamic_pointer_cast<Player>(Minecraft::GetInstance()->player);
|
||||
std::shared_ptr<Player> player = dynamic_pointer_cast<Player>(Minecraft::GetInstance()->player);
|
||||
|
||||
bindTexture(mob->customTextureUrl, mob->getTexture());
|
||||
if (!mob->isInvisible())
|
||||
|
|
@ -396,7 +396,7 @@ void MobRenderer::renderNameTag(std::shared_ptr<Mob> mob, const wstring& Origina
|
|||
Tesselator *t = Tesselator::getInstance();
|
||||
|
||||
int offs = 0;
|
||||
std::shared_ptr<Player> player = std::dynamic_pointer_cast<Player>(mob);
|
||||
std::shared_ptr<Player> player = dynamic_pointer_cast<Player>(mob);
|
||||
if (player != NULL && app.isXuidDeadmau5( player->getXuid() ) ) offs = -10;
|
||||
|
||||
wstring playerName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue