Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast"

This reverts commit 07ad68bc15.
This commit is contained in:
void_17
2026-03-02 17:36:56 +07:00
parent 07ad68bc15
commit 7ae0c13854
207 changed files with 623 additions and 623 deletions

View File

@@ -14,7 +14,7 @@ void SquidRenderer::render(std::shared_ptr<Entity> mob, double x, double y, doub
void SquidRenderer::setupRotations(std::shared_ptr<Mob> _mob, float bob, float bodyRot, float a)
{
// 4J - dynamic cast required because we aren't using templates/generics in our version
std::shared_ptr<Squid> mob = std::dynamic_pointer_cast<Squid>(_mob);
std::shared_ptr<Squid> mob = dynamic_pointer_cast<Squid>(_mob);
float bodyXRot = (mob->xBodyRotO + (mob->xBodyRot - mob->xBodyRotO) * a);
float bodyZRot = (mob->zBodyRotO + (mob->zBodyRot - mob->zBodyRotO) * a);
@@ -29,7 +29,7 @@ void SquidRenderer::setupRotations(std::shared_ptr<Mob> _mob, float bob, float b
float SquidRenderer::getBob(std::shared_ptr<Mob> _mob, float a)
{
// 4J - dynamic cast required because we aren't using templates/generics in our version
std::shared_ptr<Squid> mob = std::dynamic_pointer_cast<Squid>(_mob);
std::shared_ptr<Squid> mob = dynamic_pointer_cast<Squid>(_mob);
return mob->oldTentacleAngle + (mob->tentacleAngle - mob->oldTentacleAngle) * a;
}