diff options
author | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
commit | 979ccd45baa9a38169661ba379a341cae8619c3b (patch) | |
tree | 757477dbdc02025cc29690a4e66e40f872cab02b /src/livery.h | |
parent | 4169bfba0604b33bad92389bd3eb6f9acde89f49 (diff) | |
download | openttd-979ccd45baa9a38169661ba379a341cae8619c3b.tar.xz |
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/livery.h')
-rw-r--r-- | src/livery.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/livery.h b/src/livery.h index 18fa0b11c..f9f99fc9f 100644 --- a/src/livery.h +++ b/src/livery.h @@ -8,7 +8,7 @@ #include "helpers.hpp" /* List of different livery schemes. */ -typedef enum LiverySchemes { +enum LiveryScheme { LS_BEGIN = 0, LS_DEFAULT = 0, @@ -39,25 +39,25 @@ typedef enum LiverySchemes { LS_LARGE_PLANE, LS_END -} LiveryScheme; +}; DECLARE_POSTFIX_INCREMENT(LiveryScheme); /* List of different livery classes, used only by the livery GUI. */ -typedef enum LiveryClasses { +enum LiveryClass { LC_OTHER, LC_RAIL, LC_ROAD, LC_SHIP, LC_AIRCRAFT, LC_END -} LiveryClass; +}; -typedef struct Livery { +struct Livery { bool in_use; ///< Set if this livery should be used instead of the default livery. byte colour1; ///< First colour, for all vehicles. byte colour2; ///< Second colour, for vehicles with 2CC support. -} Livery; +}; #endif /* LIVERY_H */ |