summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
committerrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
commit979ccd45baa9a38169661ba379a341cae8619c3b (patch)
tree757477dbdc02025cc29690a4e66e40f872cab02b /src/vehicle_gui.cpp
parent4169bfba0604b33bad92389bd3eb6f9acde89f49 (diff)
downloadopenttd-979ccd45baa9a38169661ba379a341cae8619c3b.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index ba6ef419a..c4f5a66f3 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -30,22 +30,22 @@
#include "helpers.hpp"
#include "cargotype.h"
-typedef struct Sorting {
+struct Sorting {
Listing aircraft;
Listing roadveh;
Listing ship;
Listing train;
-} Sorting;
+};
static Sorting _sorting;
-typedef struct vehiclelist_d {
+struct vehiclelist_d {
const Vehicle** sort_list; // List of vehicles (sorted)
Listing *_sorting; // pointer to the appropiate subcategory of _sorting
uint16 length_of_sort_list; // Keeps track of how many vehicle pointers sort list got space for
byte vehicle_type; // The vehicle type that is sorted
list_d l; // General list struct
-} vehiclelist_d;
+};
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(vehiclelist_d));
static bool _internal_sort_order; // descending/ascending
@@ -180,17 +180,17 @@ void DrawVehicleProfitButton(const Vehicle *v, int x, int y)
DrawSprite(SPR_BLOT, pal, x, y);
}
-typedef struct RefitOption {
+struct RefitOption {
CargoID cargo;
byte subtype;
uint16 value;
EngineID engine;
-} RefitOption;
+};
-typedef struct RefitList {
+struct RefitList {
uint num_lines;
RefitOption *items;
-} RefitList;
+};
static RefitList *BuildRefitList(const Vehicle *v)
{