summaryrefslogtreecommitdiff
path: root/ship_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-09-04 15:44:28 +0000
committerDarkvater <Darkvater@openttd.org>2006-09-04 15:44:28 +0000
commit2ca590ab75659a2282a90c722426f25e6e65f960 (patch)
tree86531580a623b508d7fd6804425e9004d31057d9 /ship_gui.c
parent52fa30022a36faa5c46ad63c17df59d8f50215c6 (diff)
downloadopenttd-2ca590ab75659a2282a90c722426f25e6e65f960.tar.xz
(svn r6379) -Codechange: cast 'remove babel' on widget's unkA and rename it to 'data'.
Diffstat (limited to 'ship_gui.c')
-rw-r--r--ship_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 6e209dfdb..0a0914e81 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -398,7 +398,7 @@ static void NewShipWndProc(Window *w, WindowEvent *e)
case WE_RESIZE:
w->vscroll.cap += e->sizing.diff.y / 24;
- w->widget[2].unkA = (w->vscroll.cap << 8) + 1;
+ w->widget[2].data = (w->vscroll.cap << 8) + 1;
break;
}
@@ -434,7 +434,7 @@ void ShowBuildShipWindow(TileIndex tile)
w = AllocateWindowDesc(&_new_ship_desc);
w->window_number = tile;
w->vscroll.cap = 4;
- w->widget[2].unkA = (w->vscroll.cap << 8) + 1;
+ w->widget[2].data = (w->vscroll.cap << 8) + 1;
w->resize.step_height = 24;
@@ -843,7 +843,7 @@ static void ShipDepotWndProc(Window *w, WindowEvent *e)
case WE_RESIZE:
w->vscroll.cap += e->sizing.diff.y / 24;
w->hscroll.cap += e->sizing.diff.x / 90;
- w->widget[5].unkA = (w->vscroll.cap << 8) + w->hscroll.cap;
+ w->widget[5].data = (w->vscroll.cap << 8) + w->hscroll.cap;
break;
}
}