diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-02 17:10:34 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-02 17:10:34 +0700 |
| commit | 07ad68bc156b3ab70401723bb074a29588ad3cb7 (patch) | |
| tree | fcd5c35bb393920e46af6c9b643d0544e78b5ab8 /Minecraft.World/Ghast.cpp | |
| parent | 7bee4770df1540c2daf3121c0790332fb41e72dd (diff) | |
dynamic_pointer_cast -> std::dynamic_pointer_cast
Diffstat (limited to 'Minecraft.World/Ghast.cpp')
| -rw-r--r-- | Minecraft.World/Ghast.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/Ghast.cpp b/Minecraft.World/Ghast.cpp index 9e66830d..bfc6521e 100644 --- a/Minecraft.World/Ghast.cpp +++ b/Minecraft.World/Ghast.cpp @@ -49,7 +49,7 @@ bool Ghast::hurt(DamageSource *source, int dmg) { if (source->getMsgId() == ChatPacket::e_ChatDeathFireball) { - std::shared_ptr<Player> player = dynamic_pointer_cast<Player>( source->getEntity() ); + std::shared_ptr<Player> player = std::dynamic_pointer_cast<Player>( source->getEntity() ); if (player != NULL) { // reflected fireball, kill the ghast @@ -151,7 +151,7 @@ void Ghast::serverAiStep() { // 4J - change brought forward from 1.2.3 level->levelEvent(nullptr, LevelEvent::SOUND_GHAST_FIREBALL, (int) x, (int) y, (int) z, 0); - std::shared_ptr<Fireball> ie = std::shared_ptr<Fireball>( new Fireball(level, dynamic_pointer_cast<Mob>( shared_from_this() ), xdd, ydd, zdd) ); + std::shared_ptr<Fireball> ie = std::shared_ptr<Fireball>( new Fireball(level, std::dynamic_pointer_cast<Mob>( shared_from_this() ), xdd, ydd, zdd) ); double d = 4; Vec3 *v = getViewVector(1); ie->x = x + v->x * d; |
