diff options
author | tron <tron@openttd.org> | 2005-01-22 20:23:18 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-22 20:23:18 +0000 |
commit | 189ca7370762dca088a13d08ccb035e364758abb (patch) | |
tree | f77535f8809840126757131b192e611f6d912bdf /ai.c | |
parent | 7984a9a5007f4bdf1107cdf646c42e3e137f65cf (diff) | |
download | openttd-189ca7370762dca088a13d08ccb035e364758abb.tar.xz |
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Diffstat (limited to 'ai.c')
-rw-r--r-- | ai.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |