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 | 24c4d5b06d231785db01500360c26815d8fe4d15 (patch) | |
tree | 757477dbdc02025cc29690a4e66e40f872cab02b /src/newgrf_gui.cpp | |
parent | 36bb92ae241403d61dc7a3e5a1696b615be61395 (diff) | |
download | openttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz |
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 3a1c49719..cf9a52508 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -106,10 +106,10 @@ static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint w, bool show /* Dialogue for adding NewGRF files to the selection */ -typedef struct newgrf_add_d { +struct newgrf_add_d { GRFConfig **list; const GRFConfig *sel; -} newgrf_add_d; +}; static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e) @@ -236,14 +236,14 @@ static const WindowDesc _newgrf_add_dlg_desc = { /* 'NewGRF Settings' dialogue */ -typedef struct newgrf_d { +struct newgrf_d { GRFConfig **orig_list; ///< grf list the window is shown with GRFConfig **list; ///< temporary grf list to which changes are made GRFConfig *sel; ///< selected grf item bool editable; ///< is the window editable bool show_params; ///< are the grf-parameters shown in the info-panel bool execute; ///< on pressing 'apply changes' are grf changes applied immediately, or only list is updated -} newgrf_d; +}; assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(newgrf_d)); |