mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(client): initialize g_rndSeed in InitializeGlobal
This commit is contained in:
parent
b1126ae12c
commit
3827e42795
@ -17,9 +17,11 @@
|
||||
#include "sound/Interface.hpp"
|
||||
#include "ui/FrameScript.hpp"
|
||||
#include "ui/FrameXML.hpp"
|
||||
#include "util/Random.hpp"
|
||||
#include "world/World.hpp"
|
||||
#include <bc/Debug.hpp>
|
||||
#include <common/Prop.hpp>
|
||||
#include <common/Time.hpp>
|
||||
#include <storm/Error.hpp>
|
||||
|
||||
CVar* Client::g_accountNameVar;
|
||||
@ -449,8 +451,8 @@ int32_t InitializeGlobal() {
|
||||
|
||||
// OsIMEInitialize();
|
||||
|
||||
// uint32_t v13 = OsGetAsyncTimeMs();
|
||||
// g_rndSeed.SetSeed(v13);
|
||||
uint32_t seed = OsGetAsyncTimeMs();
|
||||
g_rndSeed.SetSeed(seed);
|
||||
|
||||
Client::g_clientEventContext = EventCreateContextEx(
|
||||
1,
|
||||
|
||||
3
src/util/Random.cpp
Normal file
3
src/util/Random.cpp
Normal file
@ -0,0 +1,3 @@
|
||||
#include "util/Random.hpp"
|
||||
|
||||
CRndSeed g_rndSeed(0);
|
||||
8
src/util/Random.hpp
Normal file
8
src/util/Random.hpp
Normal file
@ -0,0 +1,8 @@
|
||||
#ifndef UTIL_RANDOM_HPP
|
||||
#define UTIL_RANDOM_HPP
|
||||
|
||||
#include <tempest/Random.hpp>
|
||||
|
||||
extern CRndSeed g_rndSeed;
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user