Changeset - r6829:7110f753f2a1
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-06-08 18:15:11
rubidium@openttd.org
(svn r10068) -Fix [FS#835]: coverage area highlight was still show when it was turned off for docks.
1 file changed with 6 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/dock_gui.cpp
Show inline comments
 
@@ -235,14 +235,16 @@ static void BuildDockStationWndProc(Wind
 
	case WE_CREATE: LowerWindowWidget(w, _station_show_coverage + 3); break;
 

	
 
	case WE_PAINT: {
 
		int rad;
 
		int rad = (_patches.modified_catchment) ? CA_DOCK : 4;
 

	
 
		if (WP(w, def_d).close) return;
 
		DrawWindowWidgets(w);
 

	
 
		rad = (_patches.modified_catchment) ? CA_DOCK : 4;
 

	
 
		if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
 
		if (_station_show_coverage) {
 
			SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
 
		} else {
 
			SetTileSelectSize(1, 1);
 
		}
 

	
 
		DrawStationCoverageAreaText(4, 50, (uint)-1, rad);
 
		break;
0 comments (0 inline, 0 general)