This commit is contained in:
Eduardo Bart 2012-03-30 06:51:34 -03:00
rodzic c13a5b5dab
commit fa3d60a00a
3 zmienionych plików z 4 dodań i 2 usunięć

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 1.5 KiB

Wyświetl plik

@ -231,12 +231,13 @@ void LocalPlayer::setExperience(double experience)
void LocalPlayer::setLevel(double level, double levelPercent)
{
if(m_level != level || m_levelPercent != m_levelPercent) {
if(m_level != level || m_levelPercent != levelPercent) {
double oldLevel = m_level;
double oldLevelPercent = m_levelPercent;
m_level = level;
m_levelPercent = levelPercent;
dump << "yeah";
callLuaField("onLevelChange", level, levelPercent, oldLevel, oldLevelPercent);
}
}

Wyświetl plik

@ -357,7 +357,8 @@ void MapView::updateVisibleTilesCache(int start)
if(stop) {
// schedule next update continuation
m_updateTilesCacheEvent = g_eventDispatcher.addEvent(std::bind(&MapView::updateVisibleTilesCache, asMapView(), count));
// scheduling an event with delay 0 ensures that the its execution will be after next frame render
m_updateTilesCacheEvent = g_eventDispatcher.scheduleEvent(std::bind(&MapView::updateVisibleTilesCache, asMapView(), count), 0);
}
if(start == 0)
m_cachedFloorVisibleCreatures = g_map.getSpectators(cameraPosition, false);