Changeset - r11074:65548b0f2da6
[Not reviewed]
master
0 2 0
rubidium - 15 years ago 2009-02-08 16:03:17
rubidium@openttd.org
(svn r15415) -Change: close the (station) joiner window when pressing the bulldozer.
2 files changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/rail_gui.cpp
Show inline comments
 
@@ -298,6 +298,7 @@ enum RailToolbarWidgets {
 
 */
 
static void ToggleRailButton_Remove(Window *w)
 
{
 
	DeleteWindowById(WC_SELECT_STATION, 0);
 
	w->ToggleWidgetLoweredState(RTW_REMOVE);
 
	w->InvalidateWidget(RTW_REMOVE);
 
	_remove_button_clicked = w->IsWidgetLowered(RTW_REMOVE);
src/road_gui.cpp
Show inline comments
 
@@ -368,6 +368,8 @@ static void BuildRoadClick_Tunnel(Window
 
static void BuildRoadClick_Remove(Window *w)
 
{
 
	if (w->IsWidgetDisabled(RTW_REMOVE)) return;
 

	
 
	DeleteWindowById(WC_SELECT_STATION, 0);
 
	ToggleRoadButton_Remove(w);
 
	SndPlayFx(SND_15_BEEP);
 
}
0 comments (0 inline, 0 general)