|
|
|
@ -241,7 +241,6 @@ namespace MWWorld
|
|
|
|
|
{
|
|
|
|
|
if (mSky && (isCellExterior() || isCellQuasiExterior()))
|
|
|
|
|
{
|
|
|
|
|
updateSkyDate();
|
|
|
|
|
mRendering->setSkyEnabled(true);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -635,19 +634,13 @@ namespace MWWorld
|
|
|
|
|
|
|
|
|
|
void World::setGlobalInt(GlobalVariableName name, int value)
|
|
|
|
|
{
|
|
|
|
|
bool dateUpdated = mTimeManager->updateGlobalInt(name, value);
|
|
|
|
|
if (dateUpdated)
|
|
|
|
|
updateSkyDate();
|
|
|
|
|
|
|
|
|
|
mTimeManager->updateGlobalInt(name, value);
|
|
|
|
|
mGlobalVariables[name].setInteger(value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void World::setGlobalFloat(GlobalVariableName name, float value)
|
|
|
|
|
{
|
|
|
|
|
bool dateUpdated = mTimeManager->updateGlobalFloat(name, value);
|
|
|
|
|
if (dateUpdated)
|
|
|
|
|
updateSkyDate();
|
|
|
|
|
|
|
|
|
|
mTimeManager->updateGlobalFloat(name, value);
|
|
|
|
|
mGlobalVariables[name].setFloat(value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -921,7 +914,6 @@ namespace MWWorld
|
|
|
|
|
|
|
|
|
|
mWeatherManager->advanceTime(hours, incremental);
|
|
|
|
|
mTimeManager->advanceTime(hours, mGlobalVariables);
|
|
|
|
|
updateSkyDate();
|
|
|
|
|
|
|
|
|
|
if (!incremental)
|
|
|
|
|
{
|
|
|
|
@ -3853,12 +3845,6 @@ namespace MWWorld
|
|
|
|
|
mWorldScene->reportStats(frameNumber, stats);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void World::updateSkyDate()
|
|
|
|
|
{
|
|
|
|
|
ESM::EpochTimeStamp currentDate = mTimeManager->getEpochTimeStamp();
|
|
|
|
|
mRendering->skySetDate(currentDate.mDay, currentDate.mMonth);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::vector<MWWorld::Ptr> World::getAll(const ESM::RefId& id)
|
|
|
|
|
{
|
|
|
|
|
return mWorldModel.getAll(id);
|
|
|
|
|