(svn r6379) -Codechange: cast 'remove babel' on widget's unkA and rename it to 'data'.

This commit is contained in:
Darkvater
2006-09-04 15:44:28 +00:00
parent b7f36808ac
commit 56d06ba0a7
9 changed files with 51 additions and 53 deletions

View File

@@ -218,7 +218,7 @@ static void NewAircraftWndProc(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;
}
}
@@ -252,7 +252,7 @@ void ShowBuildAircraftWindow(TileIndex tile)
w = AllocateWindowDesc(&_new_aircraft_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;
@@ -903,7 +903,7 @@ static void AircraftDepotWndProc(Window *w, WindowEvent *e)
case WE_RESIZE:
w->vscroll.cap += e->sizing.diff.y / 24;
w->hscroll.cap += e->sizing.diff.x / 74;
w->widget[5].unkA = (w->vscroll.cap << 8) + w->hscroll.cap;
w->widget[5].data = (w->vscroll.cap << 8) + w->hscroll.cap;
break;
}
}