Minor changes to use CUnit::GetModel() and CUnit::GetObject() instead of m_Model and m_Object, as these are no longer public.

This was SVN commit r308.
This commit is contained in:
notpete
2004-05-29 20:58:11 +00:00
parent f4d09178a9
commit 6535db7fd4
3 changed files with 11 additions and 20 deletions
+3 -3
View File
@@ -115,10 +115,10 @@ bool CEntity::processGoto( CEntityOrder* current, float timestep )
{
CVector2D path_to = current->m_data[0].location;
m_orderQueue.pop_front();
if( m_actor->m_Model->GetAnimation() != m_actor->m_Object->m_WalkAnim )
if( m_actor->GetModel()->GetAnimation() != m_actor->GetObject()->m_WalkAnim )
{
m_actor->m_Model->SetAnimation( m_actor->m_Object->m_WalkAnim );
m_actor->m_Model->Update( ( rand() * 1000.0f ) / 1000.0f );
m_actor->GetModel()->SetAnimation( m_actor->GetObject()->m_WalkAnim );
m_actor->GetModel()->Update( ( rand() * 1000.0f ) / 1000.0f );
}
g_Pathfinder.requestPath( me, path_to );
return( true );