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 | 56d06ba0a75b7157fdd236327cd08f9b0538551e (patch) | |
tree | 86531580a623b508d7fd6804425e9004d31057d9 /train_gui.c | |
parent | b7f36808acfd52ff64bfb454260bb4071acbd6e7 (diff) | |
download | openttd-56d06ba0a75b7157fdd236327cd08f9b0538551e.tar.xz |
(svn r6379) -Codechange: cast 'remove babel' on widget's unkA and rename it to 'data'.
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/train_gui.c b/train_gui.c index 77a014b5d..3dfc86e84 100644 --- a/train_gui.c +++ b/train_gui.c @@ -296,7 +296,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e) 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; } } @@ -330,7 +330,7 @@ void ShowBuildTrainWindow(TileIndex tile) w = AllocateWindowDesc(&_new_rail_vehicle_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 @@ -765,7 +765,7 @@ static void TrainDepotWndProc(Window *w, WindowEvent *e) /* Update the scroll + matrix */ w->vscroll.cap += e->sizing.diff.y / 14; w->hscroll.cap += e->sizing.diff.x; - w->widget[6].unkA = (w->vscroll.cap << 8) + 1; + w->widget[6].data = (w->vscroll.cap << 8) + 1; } break; } } @@ -1317,7 +1317,7 @@ do_change_service_int: if (e->sizing.diff.y == 0) break; w->vscroll.cap += e->sizing.diff.y / 14; - w->widget[4].unkA = (w->vscroll.cap << 8) + 1; + w->widget[4].data = (w->vscroll.cap << 8) + 1; break; } } @@ -1364,7 +1364,7 @@ static void ShowTrainDetailsWindow(const Vehicle *v) w->window_number = veh; w->caption_color = v->owner; w->vscroll.cap = 6; - w->widget[4].unkA = (w->vscroll.cap << 8) + 1; + w->widget[4].data = (w->vscroll.cap << 8) + 1; w->resize.step_height = 14; w->resize.height = w->height - 14 * 2; /* Minimum of 4 wagons in the display */ |