(svn r7129) -Codechange: Get rid of a global variable that only sets a window's number.

This commit is contained in:
Darkvater
2006-11-11 09:47:44 +00:00
parent d50f6c8a8c
commit 21db9ebb8e
9 changed files with 19 additions and 31 deletions

View File

@@ -221,10 +221,7 @@ static const WindowDesc _depot_sell_all_desc = {
static void ShowDepotSellAllWindow(TileIndex tile, byte type)
{
Window *w;
_alloc_wnd_parent_num = tile;
w = AllocateWindowDescFront(&_depot_sell_all_desc, tile);
Window *w = AllocateWindowDescFront(&_depot_sell_all_desc, tile);
if (w != NULL) {
w->caption_color = GetTileOwner(tile);