Changeset - r15682:ba24e5192fb1
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-08-04 07:31:29
rubidium@openttd.org
(svn r20358) -Fix [FS#4008]: (r20281) crash when building some stuff when the measurement tooltip is disabled
1 file changed with 4 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/viewport.cpp
Show inline comments
 
@@ -2602,8 +2602,8 @@ calc_heightdiff_single_direction:;
 
				}
 

	
 
				ShowMeasurementTooltips(measure_strings_length[index], index, params);
 
				break;
 
			}
 
			break;
 

	
 
		case VPM_X_AND_Y_LIMITED: // Drag an X by Y constrained rect area.
 
			limit = (_thd.sizelimit - 1) * TILE_SIZE;
 
@@ -2611,7 +2611,7 @@ calc_heightdiff_single_direction:;
 
			y = sy + Clamp(y - sy, -limit, limit);
 
			/* FALL THROUGH */
 

	
 
		case VPM_X_AND_Y: { // drag an X by Y area
 
		case VPM_X_AND_Y: // drag an X by Y area
 
			if (_settings_client.gui.measure_tooltip) {
 
				static const StringID measure_strings_area[] = {
 
					STR_NULL, STR_NULL, STR_MEASURE_AREA, STR_MEASURE_AREA_HEIGHTDIFF
 
@@ -2645,9 +2645,8 @@ calc_heightdiff_single_direction:;
 

	
 
				ShowMeasurementTooltips(measure_strings_area[index], index, params);
 
			}
 
		break;
 

	
 
		}
 
			break;
 

	
 
		default: NOT_REACHED();
 
	}
 

	
0 comments (0 inline, 0 general)