mirror of
https://github.com/edubart/otclient.git
synced 2025-12-16 21:57:11 +01:00
some optimizations
This commit is contained in:
@@ -77,7 +77,7 @@ void SoundManager::terminate()
|
||||
void SoundManager::poll()
|
||||
{
|
||||
static ticks_t lastUpdate = 0;
|
||||
ticks_t now = g_clock.ticks();
|
||||
ticks_t now = g_clock.millis();
|
||||
|
||||
if(now - lastUpdate < POLL_DELAY)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user