From 8b909ff838fd04d41edb48e10375ab847617b491 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Fri, 21 Jun 2013 08:58:52 +0200 Subject: [PATCH] killed a stray srand --- apps/openmw/mwworld/weather.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/openmw/mwworld/weather.cpp b/apps/openmw/mwworld/weather.cpp index 68a46ec12..10dbdae9b 100644 --- a/apps/openmw/mwworld/weather.cpp +++ b/apps/openmw/mwworld/weather.cpp @@ -1,8 +1,5 @@ #include "weather.hpp" -#include -#include - #include #include "../mwbase/environment.hpp" #include "../mwbase/world.hpp" @@ -210,7 +207,7 @@ void WeatherManager::setResult(const String& weatherType) mResult.mGlareView = current.mGlareView; mResult.mAmbientLoopSoundID = current.mAmbientLoopSoundID; mResult.mSunColor = current.mSunDiscSunsetColor; - + mResult.mNight = (mHour < mSunriseTime || mHour > mNightStart - 1); mResult.mFogDepth = mResult.mNight ? current.mLandFogNightDepth : current.mLandFogDayDepth; @@ -485,7 +482,6 @@ void WeatherManager::update(float duration) mRendering->getSkyManager()->setLightningStrength( mThunderFlash / mThunderThreshold ); else { - srand(time(NULL)); mThunderChanceNeeded = rand() % 100; mThunderChance = 0; mRendering->getSkyManager()->setLightningStrength( 0.f );