mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 02:15:32 +00:00
killed a stray srand
This commit is contained in:
parent
8da3494d74
commit
8b909ff838
1 changed files with 1 additions and 5 deletions
|
@ -1,8 +1,5 @@
|
||||||
#include "weather.hpp"
|
#include "weather.hpp"
|
||||||
|
|
||||||
#include <ctime>
|
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
#include "../mwbase/environment.hpp"
|
#include "../mwbase/environment.hpp"
|
||||||
#include "../mwbase/world.hpp"
|
#include "../mwbase/world.hpp"
|
||||||
|
@ -210,7 +207,7 @@ void WeatherManager::setResult(const String& weatherType)
|
||||||
mResult.mGlareView = current.mGlareView;
|
mResult.mGlareView = current.mGlareView;
|
||||||
mResult.mAmbientLoopSoundID = current.mAmbientLoopSoundID;
|
mResult.mAmbientLoopSoundID = current.mAmbientLoopSoundID;
|
||||||
mResult.mSunColor = current.mSunDiscSunsetColor;
|
mResult.mSunColor = current.mSunDiscSunsetColor;
|
||||||
|
|
||||||
mResult.mNight = (mHour < mSunriseTime || mHour > mNightStart - 1);
|
mResult.mNight = (mHour < mSunriseTime || mHour > mNightStart - 1);
|
||||||
|
|
||||||
mResult.mFogDepth = mResult.mNight ? current.mLandFogNightDepth : current.mLandFogDayDepth;
|
mResult.mFogDepth = mResult.mNight ? current.mLandFogNightDepth : current.mLandFogDayDepth;
|
||||||
|
@ -485,7 +482,6 @@ void WeatherManager::update(float duration)
|
||||||
mRendering->getSkyManager()->setLightningStrength( mThunderFlash / mThunderThreshold );
|
mRendering->getSkyManager()->setLightningStrength( mThunderFlash / mThunderThreshold );
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
srand(time(NULL));
|
|
||||||
mThunderChanceNeeded = rand() % 100;
|
mThunderChanceNeeded = rand() % 100;
|
||||||
mThunderChance = 0;
|
mThunderChance = 0;
|
||||||
mRendering->getSkyManager()->setLightningStrength( 0.f );
|
mRendering->getSkyManager()->setLightningStrength( 0.f );
|
||||||
|
|
Loading…
Reference in a new issue