1
0
forked from 0ad/0ad

This was SVN commit r1795.

This commit is contained in:
NoMonkey 2005-01-23 22:38:13 +00:00
parent 41a924665b
commit 3851e7b9d9

View File

@ -88,14 +88,6 @@ CEntity::~CEntity()
if( m_bounds ) delete( m_bounds );
}
void CEntity::SetPlayer(CPlayer *pPlayer)
{
m_player=pPlayer;
// Store the ID of the player in the associated model
m_actor->GetModel()->SetPlayerID( m_player->GetPlayerID() );
}
void CEntity::loadBase()
{
if( m_actor )
@ -148,6 +140,14 @@ void CEntity::kill()
me = HEntity(); // will deallocate the entity, assuming nobody else has a reference to it
}
void CEntity::SetPlayer(CPlayer *pPlayer)
{
m_player=pPlayer;
// Store the ID of the player in the associated model
m_actor->GetModel()->SetPlayerID( m_player->GetPlayerID() );
}
void CEntity::updateActorTransforms()
{
CMatrix3D m;