Changeset - r17375:eab0161ea1e8
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-02-23 18:39:56
frosch@openttd.org
(svn r22131) -Fix: Spectators had trouble closing buoy windows. (Terkhen)
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/waypoint_gui.cpp
Show inline comments
 
@@ -79,8 +79,12 @@ public:
 
	~WaypointWindow()
 
	{
 
		Owner owner = this->owner;
 

	
 
		/* Buoys have no owner and can be used by everyone. Show only 'our' vehicles */
 
		if (!Company::IsValidID(owner)) owner = _local_company;
 
		DeleteWindowById(GetWindowClassForVehicleType(this->vt), VehicleListIdentifier(VL_STATION_LIST, this->vt, owner, this->window_number).Pack(), false);
 

	
 
		/* Well, spectators otoh */
 
		if (Company::IsValidID(owner)) DeleteWindowById(GetWindowClassForVehicleType(this->vt), VehicleListIdentifier(VL_STATION_LIST, this->vt, owner, this->window_number).Pack(), false);
 
	}
 

	
 
	virtual void SetStringParameters(int widget) const
0 comments (0 inline, 0 general)