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 /disaster_cmd.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 'disaster_cmd.c')
-rw-r--r-- | disaster_cmd.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c index 16c0a523d..528019f63 100644 --- a/disaster_cmd.c +++ b/disaster_cmd.c @@ -694,10 +694,10 @@ void OnNewDay_DisasterVehicle(Vehicle *v) // not used } -typedef void DisasterInitProc(); +typedef void DisasterInitProc(void); // Zeppeliner which crashes on a small airport -static void Disaster0_Init() +static void Disaster0_Init(void) { Vehicle *v = ForceAllocateSpecialVehicle(), *u; Station *st; @@ -730,7 +730,7 @@ static void Disaster0_Init() } } -static void Disaster1_Init() +static void Disaster1_Init(void) { Vehicle *v = ForceAllocateSpecialVehicle(), *u; int x; @@ -753,7 +753,7 @@ static void Disaster1_Init() } } -static void Disaster2_Init() +static void Disaster2_Init(void) { Industry *i, *found; Vehicle *v,*u; @@ -789,7 +789,7 @@ static void Disaster2_Init() } } -static void Disaster3_Init() +static void Disaster3_Init(void) { Industry *i, *found; Vehicle *v,*u,*w; @@ -831,7 +831,7 @@ static void Disaster3_Init() } } -static void Disaster4_Init() +static void Disaster4_Init(void) { Vehicle *v = ForceAllocateSpecialVehicle(), *u; int x,y; @@ -856,7 +856,7 @@ static void Disaster4_Init() } // Submarine type 1 -static void Disaster5_Init() +static void Disaster5_Init(void) { Vehicle *v = ForceAllocateSpecialVehicle(); int x,y; @@ -877,7 +877,7 @@ static void Disaster5_Init() } // Submarine type 2 -static void Disaster6_Init() +static void Disaster6_Init(void) { Vehicle *v = ForceAllocateSpecialVehicle(); int x,y; @@ -897,7 +897,7 @@ static void Disaster6_Init() v->age = 0; } -static void Disaster7_Init() +static void Disaster7_Init(void) { Industry *i; int maxloop = 15; @@ -954,7 +954,7 @@ static const DisasterYears _dis_years[8] = { }; -static void DoDisaster() +static void DoDisaster(void) { byte buf[8]; byte year = _cur_year; @@ -973,12 +973,12 @@ static void DoDisaster() } -static void ResetDisasterDelay() +static void ResetDisasterDelay(void) { _disaster_delay = (int)(Random() & 0x1FF) + 730; } -void DisasterDailyLoop() +void DisasterDailyLoop(void) { if (--_disaster_delay != 0) return; @@ -989,7 +989,8 @@ void DisasterDailyLoop() DoDisaster(); } -void StartupDisasters() { +void StartupDisasters(void) +{ ResetDisasterDelay(); } |