fix sprite
This commit is contained in:
@@ -43,6 +43,9 @@ void CharacterHead::LoadFromCharacter( Character* pCharacter )
|
|||||||
|
|
||||||
void CharacterHead::Update( float fDelta )
|
void CharacterHead::Update( float fDelta )
|
||||||
{
|
{
|
||||||
|
if( this->GetTexture() == NULL )
|
||||||
|
return; /* not loaded */
|
||||||
|
|
||||||
if( m_fSecondsUntilReturnToNormal > 0 )
|
if( m_fSecondsUntilReturnToNormal > 0 )
|
||||||
{
|
{
|
||||||
m_fSecondsUntilReturnToNormal -= fDelta;
|
m_fSecondsUntilReturnToNormal -= fDelta;
|
||||||
|
|||||||
Reference in New Issue
Block a user