Changeset - r5260:f11be2c67541
[Not reviewed]
master
0 1 0
bjarni - 17 years ago 2006-12-06 00:03:24
bjarni@openttd.org
(svn r7390) -Codechange r7386: only loop though the windows to find a depot window to unhighlight a vehicle in if there is a vehicle on the mouse pointer
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
depot_gui.c
Show inline comments
 
@@ -1041,6 +1041,10 @@ void DeleteDepotHighlightOfVehicle(const
 
{
 
	Window* const *wz;
 

	
 
	/* If we haven't got any vehicles on the mouse pointer, we haven't got any highlighted in any depots either
 
	 * If that is the case, we can skip looping though the windows and save time                                */
 
	if (_special_mouse_mode != WSM_DRAGDROP) return;
 

	
 
	FOR_ALL_WINDOWS(wz) {
 
		const Window *w = *wz;
 
		if (w->window_class != WC_VEHICLE_DEPOT) continue;
0 comments (0 inline, 0 general)