forked from mirror/OpenTTD
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
This commit is contained in:
6
ai.c
6
ai.c
@@ -413,12 +413,14 @@ typedef struct FoundRoute {
|
||||
void *to;
|
||||
} FoundRoute;
|
||||
|
||||
static Town *AiFindRandomTown() {
|
||||
static Town *AiFindRandomTown(void)
|
||||
{
|
||||
Town *t = GetTown(RandomRange(_total_towns));
|
||||
return (t->xy != 0) ? t : NULL;
|
||||
}
|
||||
|
||||
static Industry *AiFindRandomIndustry() {
|
||||
static Industry *AiFindRandomIndustry(void)
|
||||
{
|
||||
Industry *i = GetIndustry(RandomRange(_total_industries));
|
||||
return (i->xy != 0) ? i : NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user