(svn r7206) -Codechange: Remove (some of) the magic needed for windows that could be invalid after
a call to DeleteWindow() somewhere else. Also do some cleanup with AllowWindowDescFront()
This commit is contained in:
@@ -357,8 +357,7 @@ void ShowBuildShipWindow(TileIndex tile)
|
||||
|
||||
DeleteWindowById(WC_BUILD_VEHICLE, tile);
|
||||
|
||||
w = AllocateWindowDesc(&_new_ship_desc);
|
||||
w->window_number = tile;
|
||||
w = AllocateWindowDescFront(&_new_ship_desc, tile);
|
||||
w->vscroll.cap = 4;
|
||||
w->widget[2].data = (w->vscroll.cap << 8) + 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user