summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-29 00:26:31 +0000
committerrubidium <rubidium@openttd.org>2008-01-29 00:26:31 +0000
commitfde33b554790379af624e3c4c548535ca4097546 (patch)
treeaeebf92b3204ae9c923545d7e06e0c2c6deab0ba
parent1a9b741e43aae8f0b3e50b847397106fd661b7e9 (diff)
downloadopenttd-fde33b554790379af624e3c4c548535ca4097546.tar.xz
(svn r12003) -Codechange: don't declare InteractiveRandom[Range] in multiple places.
-rw-r--r--src/genworld_gui.cpp1
-rw-r--r--src/gfx_func.h2
-rw-r--r--src/music_gui.cpp1
-rw-r--r--src/video/dedicated_v.cpp1
-rw-r--r--src/video/sdl_v.cpp1
5 files changed, 4 insertions, 2 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index a6b5498fe..ba613bd59 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -27,6 +27,7 @@
#include "settings_type.h"
#include "widgets/dropdown_type.h"
#include "widgets/dropdown_func.h"
+#include "core/random_func.hpp"
#include "table/strings.h"
#include "table/sprites.h"
diff --git a/src/gfx_func.h b/src/gfx_func.h
index fd6af565e..4a85860f2 100644
--- a/src/gfx_func.h
+++ b/src/gfx_func.h
@@ -69,8 +69,6 @@ void HandleMouseEvents();
void CSleep(int milliseconds);
void UpdateWindows();
-uint32 InteractiveRandom(); //< Used for random sequences that are not the same on the other end of the multiplayer link
-uint InteractiveRandomRange(uint max);
void DrawChatMessage();
void DrawMouseCursor();
void ScreenSizeChanged();
diff --git a/src/music_gui.cpp b/src/music_gui.cpp
index 1816147c8..e048d9153 100644
--- a/src/music_gui.cpp
+++ b/src/music_gui.cpp
@@ -14,6 +14,7 @@
#include "sound_func.h"
#include "gfx_func.h"
#include "core/math_func.hpp"
+#include "core/random_func.hpp"
#include "table/strings.h"
#include "table/sprites.h"
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp
index c952ff093..df15663d8 100644
--- a/src/video/dedicated_v.cpp
+++ b/src/video/dedicated_v.cpp
@@ -17,6 +17,7 @@
#include "../blitter/factory.hpp"
#include "../core/alloc_func.hpp"
#include "../player_func.h"
+#include "../core/random_func.hpp"
#include "dedicated_v.h"
#ifdef BEOS_NET_SERVER
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp
index f52478c5d..25ce5a8c6 100644
--- a/src/video/sdl_v.cpp
+++ b/src/video/sdl_v.cpp
@@ -12,6 +12,7 @@
#include "../blitter/factory.hpp"
#include "../network/network.h"
#include "../core/math_func.hpp"
+#include "../core/random_func.hpp"
#include "sdl_v.h"
#include <SDL.h>