mirror of
https://github.com/edubart/otclient.git
synced 2025-10-22 23:35:54 +02:00
Minor fixes to some previous commits.
* Fixed a bug with storing the protocol version. * Fixed an issue with text windows cancelling. * Fixed a typo in the source.
This commit is contained in:
@@ -109,10 +109,10 @@ void Application::deinit()
|
||||
g_modules.unloadModules();
|
||||
g_modules.clear();
|
||||
|
||||
// release reamaning lua object references
|
||||
// release remaining lua object references
|
||||
g_lua.collectGarbage();
|
||||
|
||||
// poll reamaning events
|
||||
// poll remaining events
|
||||
poll();
|
||||
|
||||
// disable dispatcher events
|
||||
|
@@ -45,7 +45,7 @@ void EventDispatcher::poll()
|
||||
int loops = 0;
|
||||
for(int count = 0, max = m_scheduledEventList.size(); count < max && !m_scheduledEventList.empty(); ++count) {
|
||||
ScheduledEventPtr scheduledEvent = m_scheduledEventList.top();
|
||||
if(scheduledEvent->reamaningTicks() > 0)
|
||||
if(scheduledEvent->remainingTicks() > 0)
|
||||
break;
|
||||
m_scheduledEventList.pop();
|
||||
scheduledEvent->execute();
|
||||
|
@@ -76,7 +76,7 @@ void GraphicalApplication::terminate()
|
||||
// destroy particles
|
||||
g_particles.terminate();
|
||||
|
||||
// destroy any reamaning widget
|
||||
// destroy any remaining widget
|
||||
g_ui.terminate();
|
||||
|
||||
Application::terminate();
|
||||
|
@@ -35,7 +35,7 @@ public:
|
||||
bool nextCycle();
|
||||
|
||||
int ticks() { return m_ticks; }
|
||||
int reamaningTicks() { return m_ticks - g_clock.millis(); }
|
||||
int remainingTicks() { return m_ticks - g_clock.millis(); }
|
||||
int delay() { return m_delay; }
|
||||
int cyclesExecuted() { return m_cyclesExecuted; }
|
||||
int maxCycles() { return m_maxCycles; }
|
||||
|
Reference in New Issue
Block a user