Files @ r5258:3db190a590f0
Branch filter:

Location: cpp/openttd-patchpack/source/namegen.h

Darkvater
(svn r7388) -Fix (r7384 / r7368 / r3757): When adding a new news item for the first time (_latest_news
is INVALID_NEWS), make it the value of _oldest_news, not zero as DeleteVehicleNews can
change _oldest_news. Also remove the (i == INVALID_NEWS) return 0; guard from increaseIndex
as it's only used in 2 places, nowhere else.
/* $Id$ */

#ifndef NAMEGEN_H
#define NAMEGEN_H

typedef byte TownNameGenerator(char *buf, uint32 seed, const char *last);

extern TownNameGenerator * const _town_name_generators[];

#endif /* NAMEGEN_H */