Changeset - r9970:9fa96b3c3e8b
[Not reviewed]
master
0 1 0
belugas - 16 years ago 2008-08-22 01:14:25
belugas@openttd.org
(svn r14127) -Feature(ette): Give the the player's colour to the waypoint window been shown
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/waypoint_gui.cpp
Show inline comments
 
@@ -37,6 +37,7 @@ public:
 
	WaypointWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number)
 
	{
 
		this->wp = GetWaypoint(this->window_number);
 
		this->caption_color = (byte)GetTileOwner(this->wp->xy);
 

	
 
		this->flags4 |= WF_DISABLE_VP_SCROLL;
 
		InitializeWindowViewport(this, 3, 17, 254, 86, this->wp->xy, ZOOM_LVL_MIN);
 
@@ -107,5 +108,6 @@ static const WindowDesc _waypoint_view_d
 

	
 
void ShowWaypointWindow(const Waypoint *wp)
 
{
 
	if (!wp->IsValid()) return;  // little safety
 
	AllocateWindowDescFront<WaypointWindow>(&_waypoint_view_desc, wp->index);
 
}
0 comments (0 inline, 0 general)