summaryrefslogtreecommitdiff
path: root/src/livery.h
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
commit24c4d5b06d231785db01500360c26815d8fe4d15 (patch)
tree757477dbdc02025cc29690a4e66e40f872cab02b /src/livery.h
parent36bb92ae241403d61dc7a3e5a1696b615be61395 (diff)
downloadopenttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/livery.h')
-rw-r--r--src/livery.h12
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 */