mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
focus last logged character in charlist
This commit is contained in:
@@ -22,7 +22,6 @@ AnimatedTexture::AnimatedTexture(int width, int height, int channels, int numFra
|
||||
m_framesTextureId[i] = id;
|
||||
m_framesDelay[i] = framesDelay[i];
|
||||
}
|
||||
|
||||
m_currentFrame = -1;
|
||||
g_dispatcher.scheduleEvent(std::bind(&AnimatedTexture::processAnimation, this), 0);
|
||||
}
|
||||
@@ -51,5 +50,5 @@ void AnimatedTexture::processAnimation()
|
||||
m_textureId = m_framesTextureId[m_currentFrame];
|
||||
AnimatedTexturePtr me = std::static_pointer_cast<AnimatedTexture>(shared_from_this());
|
||||
if(me.use_count() > 1)
|
||||
g_dispatcher.addEvent(std::bind(&AnimatedTexture::processAnimation, me), m_framesDelay[m_currentFrame]);
|
||||
g_dispatcher.scheduleEvent(std::bind(&AnimatedTexture::processAnimation, me), m_framesDelay[m_currentFrame]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user