summaryrefslogtreecommitdiff
path: root/player_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-07 13:00:41 +0000
committerDarkvater <darkvater@openttd.org>2006-12-07 13:00:41 +0000
commit5dc75d233ab4a0adb1c9d258c10ceeddc78491f5 (patch)
tree672fd70fa939851f30d0469c319011f86230d248 /player_gui.c
parent5b9f884cd08091f29b889887a3c7e30a6ab0c7c7 (diff)
downloadopenttd-5dc75d233ab4a0adb1c9d258c10ceeddc78491f5.tar.xz
(svn r7415) -Codechange: Don't use typedef enum for simple widget enumerators when we will never use
their type anyways.
Diffstat (limited to 'player_gui.c')
-rw-r--r--player_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player_gui.c b/player_gui.c
index a1366c12a..e7bb30609 100644
--- a/player_gui.c
+++ b/player_gui.c
@@ -559,7 +559,7 @@ static const WindowDesc _select_player_face_desc = {
};
/* Names of the widgets. Keep them in the same order as in the widget array */
-typedef enum PlayerCompanyWindowWidgets {
+enum PlayerCompanyWindowWidgets {
PCW_WIDGET_CLOSEBOX = 0,
PCW_WIDGET_CAPTION,
PCW_WIDGET_FACE,
@@ -572,7 +572,7 @@ typedef enum PlayerCompanyWindowWidgets {
PCW_WIDGET_BUY_SHARE,
PCW_WIDGET_SELL_SHARE,
PCW_WIDGET_COMPANY_PASSWORD,
-} PlayerCompanyWindowWidget;
+};
static const Widget _player_company_widgets[] = {
{ WWT_CLOSEBOX, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},