Changeset - r1306:a1d9c81639d7
[Not reviewed]
master
0 3 1
tron - 19 years ago 2005-02-05 23:03:12
tron@openttd.org
(svn r1810) Move town name generation declarations into a header of their own
4 files changed with 10 insertions and 3 deletions:
0 comments (0 inline, 0 general)
namegen.c
Show inline comments
 
#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)
namegen.h
Show inline comments
 
new file 100644
 
#ifndef NAMEGEN_H
 
#define NAMEGEN_H
 

	
 
typedef byte TownNameGenerator(byte *buf, uint32 seed);
 

	
 
extern TownNameGenerator * const _town_name_generators[];
 

	
 
#endif
strings.c
Show inline comments
 
#include "stdafx.h"
 
#include "ttd.h"
 
#include "table/strings.h"
 
#include "namegen.h"
 
#include "station.h"
 
#include "town.h"
 
#include "vehicle.h"
variables.h
Show inline comments
 
@@ -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)
 
{
0 comments (0 inline, 0 general)