File diff r13553:fe51d1a866c1 → r13554:d1964ead02ee
src/smallmap_gui.cpp
Show inline comments
 
@@ -1142,25 +1142,25 @@ public:
 
		this->scroll_y = (x + y) & ~0xF;
 
		this->SetDirty();
 
	}
 
};
 

	
 
SmallMapWindow::SmallMapType SmallMapWindow::map_type = SMT_CONTOUR;
 
bool SmallMapWindow::show_towns = true;
 

	
 
static const WindowDesc _smallmap_desc(
 
	WDP_AUTO, WDP_AUTO, 350, 214, 446, 314,
 
	WC_SMALLMAP, WC_NONE,
 
	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE | WDF_UNCLICK_BUTTONS,
 
	NULL, _nested_smallmap_widgets, lengthof(_nested_smallmap_widgets)
 
	_nested_smallmap_widgets, lengthof(_nested_smallmap_widgets)
 
);
 

	
 
void ShowSmallMap()
 
{
 
	AllocateWindowDescFront<SmallMapWindow>(&_smallmap_desc, 0);
 
}
 

	
 
/**
 
 * Scrolls the main window to given coordinates.
 
 * @param x x coordinate
 
 * @param y y coordinate
 
 * @param z z coordinate; -1 to scroll to terrain height