mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-24 01:15:32 +00:00
I forgot to enable this again
This was disabled for try to find the FPS Issue
This commit is contained in:
@@ -153,7 +153,6 @@ bool Zombie::hurt(DamageSource *source, float dmg)
|
||||
{
|
||||
if (Monster::hurt(source, dmg))
|
||||
{
|
||||
/*
|
||||
shared_ptr<LivingEntity> target = getTarget();
|
||||
if ( (target == nullptr) && getAttackTarget() != nullptr && getAttackTarget()->instanceof(eTYPE_LIVINGENTITY) ) target = dynamic_pointer_cast<LivingEntity>( getAttackTarget() );
|
||||
if ( (target == nullptr) && source->getEntity() != nullptr && source->getEntity()->instanceof(eTYPE_LIVINGENTITY) ) target = dynamic_pointer_cast<LivingEntity>( source->getEntity() );
|
||||
@@ -188,7 +187,7 @@ bool Zombie::hurt(DamageSource *source, float dmg)
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user