Changeset - r1074:66b86261cc4c
[Not reviewed]
master
0 1 0
Celestar - 19 years ago 2005-01-20 10:31:59
celestar@openttd.org
(svn r1575) -Fix: Forgot to exit the construction phase for the waypoint window (if
you have newgrfs loaded)
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rail_gui.c
Show inline comments
 
@@ -816,18 +816,17 @@ static void StationBuildWndProc(Window *
 
		if (WP(w,def_d).close) {
 
			DeleteWindow(w);
 
			return;
 
		}
 
		CheckRedrawStationCoverage(w);
 
		} break;
 
		
 

	
 
	case WE_DESTROY:
 
		ResetObjectToPlace();
 
		break;
 
	}
 

	
 
}
 

	
 
static const Widget _station_builder_widgets[] = {
 
{   WWT_CLOSEBOX,   RESIZE_NONE,     7,     0,    10,     0,    13, STR_00C5,		STR_018B_CLOSE_WINDOW},
 
{    WWT_CAPTION,   RESIZE_NONE,     7,    11,   147,     0,    13, STR_3000_RAIL_STATION_SELECTION, STR_018C_WINDOW_TITLE_DRAG_THIS},
 
{      WWT_PANEL,   RESIZE_NONE,     7,     0,   147,    14,   199, 0x0,					STR_NULL},
 
@@ -975,12 +974,16 @@ static void BuildWaypointWndProc(Window 
 
	}
 

	
 
	case WE_MOUSELOOP:
 
		if (WP(w,def_d).close)
 
			DeleteWindow(w);
 
		return;
 

	
 
	case WE_DESTROY:
 
		ResetObjectToPlace();
 
		break;
 
	}
 
}
 

	
 
static const Widget _build_waypoint_widgets[] = {
 
{   WWT_CLOSEBOX,   RESIZE_NONE,     7,     0,    10,     0,    13, STR_00C5, STR_018B_CLOSE_WINDOW},
 
{    WWT_CAPTION,   RESIZE_NONE,     7,    11,   343,     0,    13, STR_WAYPOINT,STR_018C_WINDOW_TITLE_DRAG_THIS},
0 comments (0 inline, 0 general)