diff options
author | Darkvater <Darkvater@openttd.org> | 2006-09-04 15:44:28 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-09-04 15:44:28 +0000 |
commit | 2ca590ab75659a2282a90c722426f25e6e65f960 (patch) | |
tree | 86531580a623b508d7fd6804425e9004d31057d9 /roadveh_gui.c | |
parent | 52fa30022a36faa5c46ad63c17df59d8f50215c6 (diff) | |
download | openttd-2ca590ab75659a2282a90c722426f25e6e65f960.tar.xz |
(svn r6379) -Codechange: cast 'remove babel' on widget's unkA and rename it to 'data'.
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index b8600f7a9..47df5cdc4 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -567,7 +567,7 @@ static void NewRoadVehWndProc(Window *w, WindowEvent *e) if (e->sizing.diff.y == 0) break; w->vscroll.cap += e->sizing.diff.y / 14; - w->widget[2].unkA = (w->vscroll.cap << 8) + 1; + w->widget[2].data = (w->vscroll.cap << 8) + 1; } break; } @@ -602,7 +602,7 @@ void ShowBuildRoadVehWindow(TileIndex tile) w = AllocateWindowDesc(&_new_road_veh_desc); w->window_number = tile; w->vscroll.cap = 8; - w->widget[2].unkA = (w->vscroll.cap << 8) + 1; + w->widget[2].data = (w->vscroll.cap << 8) + 1; w->resize.step_height = 14; w->resize.height = w->height - 14 * 4; /* Minimum of 4 vehicles in the display */ @@ -854,7 +854,7 @@ static void RoadDepotWndProc(Window *w, WindowEvent *e) /* Update the scroll + matrix */ w->vscroll.cap += e->sizing.diff.y / 14; w->hscroll.cap += e->sizing.diff.x / 56; - w->widget[5].unkA = (w->vscroll.cap << 8) + w->hscroll.cap; + w->widget[5].data = (w->vscroll.cap << 8) + w->hscroll.cap; break; } |