summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-26 23:04:26 +0000
committerrubidium <rubidium@openttd.org>2007-12-26 23:04:26 +0000
commit0b1d3e43e59d331566fb86627dad3683d998c002 (patch)
treef790b2bd6cc316021b48938f4af7ae3364ec3027 /src/core
parentc124792fd21a4b368cf03f8f82a870576552b3dd (diff)
downloadopenttd-0b1d3e43e59d331566fb86627dad3683d998c002.tar.xz
(svn r11704) -Codechange: remove another bunch of useless includes.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/random_func.cpp3
-rw-r--r--src/core/random_func.hpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/core/random_func.cpp b/src/core/random_func.cpp
index 803250040..b0939229e 100644
--- a/src/core/random_func.cpp
+++ b/src/core/random_func.cpp
@@ -3,10 +3,11 @@
/** @file random_func.cpp */
#include "../stdafx.h"
-#include "../variables.h"
#include "random_func.hpp"
#include "bitmath_func.hpp"
+uint32 _random_seeds[2][2];
+
uint32 InteractiveRandom()
{
const uint32 s = _random_seeds[1][0];
diff --git a/src/core/random_func.hpp b/src/core/random_func.hpp
index 607d802a8..b0ea5b2b9 100644
--- a/src/core/random_func.hpp
+++ b/src/core/random_func.hpp
@@ -100,4 +100,6 @@ static inline bool Chance16R(const uint a, const uint b, uint32 &r)
return Chance16I(a, b, r);
}
+extern uint32 _random_seeds[2][2];
+
#endif /* RANDOM_FUNC_HPP */