(svn r7129) -Codechange: Get rid of a global variable that only sets a window's number.
This commit is contained in:
@@ -219,9 +219,8 @@ static void ShowRoadVehDetailsWindow(const Vehicle *v)
|
||||
|
||||
DeleteWindowById(WC_VEHICLE_ORDERS, veh);
|
||||
DeleteWindowById(WC_VEHICLE_DETAILS, veh);
|
||||
_alloc_wnd_parent_num = veh;
|
||||
w = AllocateWindowDesc(&_roadveh_details_desc);
|
||||
w->window_number = veh;
|
||||
|
||||
w = AllocateWindowDescFront(&_roadveh_details_desc, veh);
|
||||
w->caption_color = v->owner;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user