aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/EntityDamageSource.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 17:36:56 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 17:36:56 +0700
commit7ae0c13854d94ac2153cd3bb05ce18044b7cf8bb (patch)
tree95006852217f8f113288ea34988ae91c001a5de6 /Minecraft.World/EntityDamageSource.cpp
parent07ad68bc156b3ab70401723bb074a29588ad3cb7 (diff)
Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast"
This reverts commit 07ad68bc156b3ab70401723bb074a29588ad3cb7.
Diffstat (limited to 'Minecraft.World/EntityDamageSource.cpp')
-rw-r--r--Minecraft.World/EntityDamageSource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/EntityDamageSource.cpp b/Minecraft.World/EntityDamageSource.cpp
index e05b0e80..266c867f 100644
--- a/Minecraft.World/EntityDamageSource.cpp
+++ b/Minecraft.World/EntityDamageSource.cpp
@@ -26,7 +26,7 @@ std::shared_ptr<ChatPacket> EntityDamageSource::getDeathMessagePacket(std::share
wstring additional = L"";
if(entity->GetType() == eTYPE_SERVERPLAYER)
{
- std::shared_ptr<Player> sourcePlayer = std::dynamic_pointer_cast<Player>(entity);
+ std::shared_ptr<Player> sourcePlayer = dynamic_pointer_cast<Player>(entity);
if(sourcePlayer != NULL) additional = sourcePlayer->name;
}
return std::shared_ptr<ChatPacket>( new ChatPacket(player->name, m_msgId, entity->GetType(), additional ) );
@@ -34,5 +34,5 @@ std::shared_ptr<ChatPacket> EntityDamageSource::getDeathMessagePacket(std::share
bool EntityDamageSource::scalesWithDifficulty()
{
- return entity != NULL && std::dynamic_pointer_cast<Mob>(entity) && !(std::dynamic_pointer_cast<Player>(entity));
+ return entity != NULL && dynamic_pointer_cast<Mob>(entity) && !(dynamic_pointer_cast<Player>(entity));
} \ No newline at end of file