town_cmd.c
changeset 1093 4fdc46eaf423
parent 1080 23797dda4792
child 1174 6a5e747f3ba6
--- a/town_cmd.c	Sat Jan 22 19:41:30 2005 +0000
+++ b/town_cmd.c	Sat Jan 22 20:23:18 2005 +0000
@@ -203,7 +203,7 @@
 	if (_town_sort_order & 2) _town_sort_dirty = true;
 }
 
-uint32 GetWorldPopulation()
+uint32 GetWorldPopulation(void)
 {
 	uint32 pop;
 	Town *t;
@@ -403,7 +403,7 @@
 	UpdateTownRadius(t);
 }
 
-void OnTick_Town()
+void OnTick_Town(void)
 {
 	uint i;
 	Town *t;
@@ -730,7 +730,7 @@
 // Generate a random road block
 // The probability of a straight road
 // is somewhat higher than a curved.
-static int GenRandomRoadBits()
+static int GenRandomRoadBits(void)
 {
 	uint32 r = Random();
 	int a = r&3, b = (r >> 8) & 3;
@@ -948,7 +948,7 @@
 	UpdateTownMaxPass(t);
 }
 
-static Town *AllocateTown()
+static Town *AllocateTown(void)
 {
 	Town *t;
 	FOR_ALL_TOWNS(t) {
@@ -995,7 +995,7 @@
 	return 0;
 }
 
-Town *CreateRandomTown()
+Town *CreateRandomTown(void)
 {
 	uint tile;
 	TileInfo ti;
@@ -1034,7 +1034,7 @@
 	11, 23, 46
 };
 
-void GenerateTowns()
+void GenerateTowns(void)
 {
 	uint n;
 	n = _num_initial_towns[_opt.diff.number_towns] + (Random()&7);
@@ -1806,7 +1806,7 @@
 	return true;
 }
 
-void TownsMonthlyLoop()
+void TownsMonthlyLoop(void)
 {
 	Town *t;
 
@@ -1824,7 +1824,7 @@
 	}
 }
 
-void InitializeTowns()
+void InitializeTowns(void)
 {
 	Subsidy *s;
 	Town *t;
@@ -1917,7 +1917,7 @@
 	SLE_END()
 };
 
-static void Save_TOWN()
+static void Save_TOWN(void)
 {
 	Town *t;
 
@@ -1929,7 +1929,7 @@
 	}
 }
 
-static void Load_TOWN()
+static void Load_TOWN(void)
 {
 	int index;
 	while ((index = SlIterateArray()) != -1) {
@@ -1940,7 +1940,7 @@
 	}
 }
 
-void AfterLoadTown()
+void AfterLoadTown(void)
 {
 	Town *t;
 	FOR_ALL_TOWNS(t) {