(svn r1810) Move town name generation declarations into a header of their own

This commit is contained in:
tron 2005-02-05 23:03:12 +00:00
parent 31e098e64e
commit 80776172a5
4 changed files with 10 additions and 3 deletions

View File

@ -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)

8
namegen.h Normal file
View File

@ -0,0 +1,8 @@
#ifndef NAMEGEN_H
#define NAMEGEN_H
typedef byte TownNameGenerator(byte *buf, uint32 seed);
extern TownNameGenerator * const _town_name_generators[];
#endif

View File

@ -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"

View File

@ -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)
{