src/player_gui.cpp
branchgamebalance
changeset 9895 7bd07f43b0e3
parent 6516 ee6d057b9850
child 9906 6f41b8713b65
--- a/src/player_gui.cpp	Mon Mar 19 09:33:17 2007 +0000
+++ b/src/player_gui.cpp	Mon Mar 19 12:38:16 2007 +0000
@@ -286,10 +286,10 @@
 	3,
 };
 
-typedef struct livery_d {
+struct livery_d {
 	uint32 sel;
 	LiveryClass livery_class;
-} livery_d;
+};
 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(livery_d));
 
 static void ShowColourDropDownMenu(Window *w, uint32 widget)
@@ -645,10 +645,10 @@
 	FOR_ALL_VEHICLES(v) {
 		if (v->owner == player) {
 			switch (v->type) {
-				case VEH_Train:    if (IsFrontEngine(v)) train++; break;
-				case VEH_Road:     road++; break;
-				case VEH_Aircraft: if (IsNormalAircraft(v)) air++; break;
-				case VEH_Ship:     ship++; break;
+				case VEH_TRAIN:    if (IsFrontEngine(v)) train++; break;
+				case VEH_ROAD:     road++; break;
+				case VEH_AIRCRAFT: if (IsNormalAircraft(v)) air++; break;
+				case VEH_SHIP:     ship++; break;
 				default: break;
 			}
 		}
@@ -1132,7 +1132,7 @@
 
 /* Show the endgame victory screen in 2050. Update the new highscore
  * if it was high enough */
-void ShowEndGameChart(void)
+void ShowEndGameChart()
 {
 	Window *w;