(svn r1810) Move town name generation declarations into a header of their own
authortron
Sat, 05 Feb 2005 23:03:12 +0000
changeset 1306 7768d8361d88
parent 1305 8897415254ca
child 1307 74a20969a884
(svn r1810) Move town name generation declarations into a header of their own
namegen.c
namegen.h
strings.c
variables.h
--- a/namegen.c	Sat Feb 05 22:52:08 2005 +0000
+++ b/namegen.c	Sat Feb 05 23:03:12 2005 +0000
@@ -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)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/namegen.h	Sat Feb 05 23:03:12 2005 +0000
@@ -0,0 +1,8 @@
+#ifndef NAMEGEN_H
+#define NAMEGEN_H
+
+typedef byte TownNameGenerator(byte *buf, uint32 seed);
+
+extern TownNameGenerator * const _town_name_generators[];
+
+#endif
--- a/strings.c	Sat Feb 05 22:52:08 2005 +0000
+++ b/strings.c	Sat Feb 05 23:03:12 2005 +0000
@@ -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"
--- a/variables.h	Sat Feb 05 22:52:08 2005 +0000
+++ b/variables.h	Sat Feb 05 23:03:12 2005 +0000
@@ -378,9 +378,6 @@
 
 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)
 {