--- 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;