This commit is contained in:
Charles 2001-05-04 20:11:44 +00:00
parent ea618523f8
commit 6f4ea38c12
7 changed files with 112 additions and 10 deletions

View file

@ -712,6 +712,20 @@ int CNpcEnemy::getFrameCount()
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcEnemy::processGraphicFlipping()
{
if ( m_heading > 1024 && m_heading < 3072 )
{
m_reversed = true;
}
else
{
m_reversed = false;
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcEnemy::think(int _frames)
{
int moveFrames = _frames;
@ -789,14 +803,7 @@ void CNpcEnemy::think(int _frames)
break;
}
if ( m_heading > 1024 && m_heading < 3072 )
{
m_reversed = true;
}
else
{
m_reversed = false;
}
processGraphicFlipping();
}
}