summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-05 23:03:12 +0000
committertron <tron@openttd.org>2005-02-05 23:03:12 +0000
commit80776172a5861f77e98f877c66563177886a8fca (patch)
treea8a04d4e2d845ab7612bac0a7d2e41a7b12f23ea
parent31e098e64ed06580d4711b7f799234d6674288da (diff)
downloadopenttd-80776172a5861f77e98f877c66563177886a8fca.tar.xz
(svn r1810) Move town name generation declarations into a header of their own
-rw-r--r--namegen.c1
-rw-r--r--namegen.h8
-rw-r--r--strings.c1
-rw-r--r--variables.h3
4 files changed, 10 insertions, 3 deletions
diff --git a/namegen.c b/namegen.c
index 81dce6fae..3513cb131 100644
--- a/namegen.c
+++ b/namegen.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "ttd.h"
#include "debug.h"
+#include "namegen.h"
#include "table/namegen.h"
static inline uint32 SeedChance(int shift_by, int max, uint32 seed)
diff --git a/namegen.h b/namegen.h
new file mode 100644
index 000000000..d1a0ca990
--- /dev/null
+++ b/namegen.h
@@ -0,0 +1,8 @@
+#ifndef NAMEGEN_H
+#define NAMEGEN_H
+
+typedef byte TownNameGenerator(byte *buf, uint32 seed);
+
+extern TownNameGenerator * const _town_name_generators[];
+
+#endif
diff --git a/strings.c b/strings.c
index 576c2bbb8..4925bbf5b 100644
--- a/strings.c
+++ b/strings.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "ttd.h"
#include "table/strings.h"
+#include "namegen.h"
#include "station.h"
#include "town.h"
#include "vehicle.h"
diff --git a/variables.h b/variables.h
index b9cee1f0e..895ca3aaa 100644
--- a/variables.h
+++ b/variables.h
@@ -378,9 +378,6 @@ typedef struct {
VARDEF CargoConst _cargoc;
-typedef byte TownNameGenerator(byte *buf, uint32 seed);
-extern TownNameGenerator * const _town_name_generators[];
-
static inline void SetDParamX(uint32 *s, uint n, uint32 v)
{