From 189ca7370762dca088a13d08ccb035e364758abb Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 22 Jan 2005 20:23:18 +0000 Subject: (svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile --- ai.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ai.c') diff --git a/ai.c b/ai.c index 6881d7e2a..0b8259bed 100644 --- a/ai.c +++ b/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; } -- cgit v1.2.3-54-g00ecf