mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
non relevant changes
This commit is contained in:
@@ -42,7 +42,7 @@ AnimatedTexture::AnimatedTexture(int width, int height, int channels, int numFra
|
||||
m_framesDelay[i] = framesDelay[i];
|
||||
}
|
||||
m_currentFrame = -1;
|
||||
g_dispatcher.scheduleEvent(std::bind(&AnimatedTexture::processAnimation, this), 0);
|
||||
g_eventDispatcher.scheduleEvent(std::bind(&AnimatedTexture::processAnimation, this), 0);
|
||||
}
|
||||
|
||||
AnimatedTexture::~AnimatedTexture()
|
||||
@@ -71,5 +71,5 @@ void AnimatedTexture::processAnimation()
|
||||
|
||||
// continue to animate only if something still referencing this texture
|
||||
if(self.use_count() > 2)
|
||||
g_dispatcher.scheduleEvent(std::bind(&AnimatedTexture::processAnimation, self), m_framesDelay[m_currentFrame]);
|
||||
g_eventDispatcher.scheduleEvent(std::bind(&AnimatedTexture::processAnimation, self), m_framesDelay[m_currentFrame]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user