mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Move rng to components
This commit is contained in:
parent
7a46d4f46a
commit
8c810e3620
36 changed files with 103 additions and 111 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <components/sceneutil/lightmanager.hpp>
|
||||
|
||||
#include <libs/openengine/misc/rng.hpp>
|
||||
#include <components/misc/rng.hpp>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
@ -46,7 +46,7 @@ namespace SceneUtil
|
|||
|
||||
LightController::LightController()
|
||||
: mType(LT_Normal)
|
||||
, mPhase((OEngine::Misc::Rng::rollClosedProbability() * 2.f - 1.f) * 500.f)
|
||||
, mPhase((Misc::Rng::rollClosedProbability() * 2.f - 1.f) * 500.f)
|
||||
, mLastTime(0.0)
|
||||
, mDeltaCount(0.f)
|
||||
, mDirection(1.f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue