(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:
Darkvater
2006-11-18 17:04:44 +00:00
parent b3c48c0a84
commit 53f954edd3
8 changed files with 6 additions and 29 deletions

View File

@@ -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;