diff options
author | tron <tron@openttd.org> | 2005-03-10 07:01:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-03-10 07:01:43 +0000 |
commit | 4bf173e9c1bc8fbee721ec0f452a7acce0507fc9 (patch) | |
tree | d5909b351256335ef8a005f2e4075036529c157e /settings_gui.c | |
parent | e6feb224112ca93c97ba6572b38a8b2361565a6a (diff) | |
download | openttd-4bf173e9c1bc8fbee721ec0f452a7acce0507fc9.tar.xz |
(svn r1981) Typedef some structs and enums
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/settings_gui.c b/settings_gui.c index 3b8b979d0..18a6676f5 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -1194,7 +1194,7 @@ void ShowPatchesSelection(void) AllocateWindowDesc(&_patches_selection_desc); } -struct GRFFile *_sel_grffile; +GRFFile *_sel_grffile; enum { NEWGRF_WND_PROC_OFFSET_TOP_WIDGET = 14, @@ -1207,7 +1207,7 @@ static void NewgrfWndProc(Window *w, WindowEvent *e) case WE_PAINT: { int x, y = NEWGRF_WND_PROC_OFFSET_TOP_WIDGET; uint16 i = 0; - struct GRFFile *c = _first_grffile; + GRFFile *c = _first_grffile; DrawWindowWidgets(w); @@ -1323,7 +1323,8 @@ void ShowNewgrf(void) { // little helper function to calculate _grffile_count // should be REMOVED once _grffile_count is calculated at loading - struct GRFFile *c = _first_grffile; + GRFFile *c = _first_grffile; + _grffile_count = 0; while (c != NULL) { _grffile_count++; |