Changeset - r15685:a314b8920e50
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2010-08-04 08:58:45
terkhen@openttd.org
(svn r20361) -Fix [FS#3989]: Stop vehicle following after zooming out.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/main_gui.cpp
Show inline comments
 
@@ -152,6 +152,7 @@ bool DoZoomInOutWindow(ZoomStateChange h
 
			w->viewport->scrollpos_y += vp->virtual_height >> 1;
 
			w->viewport->dest_scrollpos_x = w->viewport->scrollpos_x;
 
			w->viewport->dest_scrollpos_y = w->viewport->scrollpos_y;
 
			w->viewport->follow_vehicle = INVALID_VEHICLE;
 
			break;
 
		case ZOOM_OUT:
 
			if (vp->zoom == ZOOM_LVL_MAX) return false;
 
@@ -164,6 +165,7 @@ bool DoZoomInOutWindow(ZoomStateChange h
 

	
 
			vp->virtual_width <<= 1;
 
			vp->virtual_height <<= 1;
 
			w->viewport->follow_vehicle = INVALID_VEHICLE;
 
			break;
 
	}
 
	if (vp != NULL) { // the vp can be null when how == ZOOM_NONE
0 comments (0 inline, 0 general)