mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-09 21:56:47 +00:00
Commented out notifications and death flag set during kill().
This was SVN commit r3302.
This commit is contained in:
@@ -605,6 +605,7 @@ void UpdateAuras_Normal( SAura& aura, CEntity* e )
|
||||
|
||||
void CEntity::Damage( CDamageType& damage, CEntity* inflictor )
|
||||
{
|
||||
|
||||
CEventDamage evt( inflictor, &damage );
|
||||
DispatchEvent( &evt );
|
||||
}
|
||||
@@ -614,6 +615,27 @@ void UpdateAuras_Normal( SAura& aura, CEntity* e )
|
||||
m_orderQueue.clear();
|
||||
}
|
||||
|
||||
/*void CEntity::RequestNotification( CEntity* target, unsigned long orderType )
|
||||
{
|
||||
CEntityListener notify;
|
||||
notify.m_sender = this;
|
||||
notify.m_type = orderType;
|
||||
target->m_listeners.push_back( notify );
|
||||
}
|
||||
void CEntity::SendNotification( CEntity* target, unsigned long orderType )
|
||||
{
|
||||
CEntityListener notify;
|
||||
notify.m_sender = this;
|
||||
notify.m_type = orderType;
|
||||
target->m_notifications.push_back( notify );
|
||||
}
|
||||
|
||||
void CEntity::DispatchNotification( CEntityListener notify )
|
||||
{
|
||||
CEventNotification evt( notify );
|
||||
DispatchEvent( &evt );
|
||||
}
|
||||
*/
|
||||
void CEntity::pushOrder( CEntityOrder& order )
|
||||
{
|
||||
if( acceptsOrder( order.m_type, order.m_data[0].entity ) )
|
||||
@@ -1229,6 +1251,8 @@ void UpdateAuras_Normal( SAura& aura, CEntity* e )
|
||||
|
||||
clearOrders();
|
||||
|
||||
g_EntityManager.SetDeath(true);
|
||||
|
||||
if( m_actor )
|
||||
m_actor->SetRandomAnimation( "death", true );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user