(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 e786cd5c6b
commit 73b8d80036
9 changed files with 19 additions and 31 deletions

View File

@@ -183,9 +183,7 @@ static void ShowAircraftDetailsWindow(const Vehicle *v)
DeleteWindowById(WC_VEHICLE_ORDERS, veh);
DeleteWindowById(WC_VEHICLE_DETAILS, veh);
_alloc_wnd_parent_num = veh;
w = AllocateWindowDesc(&_aircraft_details_desc);
w->window_number = veh;
w = AllocateWindowDescFront(&_aircraft_details_desc, veh);
w->caption_color = v->owner;
// w->vscroll.cap = 6;
// w->traindetails_d.tab = 0;