Changeset - r15339:7114af1a8eb1
[Not reviewed]
master
0 1 0
smatz - 14 years ago 2010-06-15 22:48:50
smatz@openttd.org
(svn r19990) -Fix: owner of the Waypoint View window wasn't properly set
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/waypoint_gui.cpp
Show inline comments
 
@@ -44,8 +44,6 @@ public:
 
		this->wp = Waypoint::Get(window_number);
 
		this->vt = (wp->string_id == STR_SV_STNAME_WAYPOINT) ? VEH_TRAIN : VEH_SHIP;
 

	
 
		if (this->wp->owner != OWNER_NONE) this->owner = this->wp->owner;
 

	
 
		this->CreateNestedTree(desc);
 
		if (this->vt == VEH_TRAIN) {
 
			this->GetWidget<NWidgetCore>(WAYPVW_SHOW_VEHICLES)->SetDataTip(STR_TRAIN, STR_STATION_VIEW_SCHEDULED_TRAINS_TOOLTIP);
 
@@ -54,7 +52,9 @@ public:
 
		}
 
		this->FinishInitNested(desc, window_number);
 

	
 
		if (this->wp->owner != OWNER_NONE) this->owner = this->wp->owner;
 
		this->flags4 |= WF_DISABLE_VP_SCROLL;
 

	
 
		NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WAYPVW_VIEWPORT);
 
		nvp->InitializeViewport(this, this->wp->xy, ZOOM_LVL_MIN);
 

	
0 comments (0 inline, 0 general)