Changeset - r21179:d6ab1e11dea6
[Not reviewed]
master
0 1 0
fonsinchen - 11 years ago 2014-01-19 09:26:17
fonsinchen@openttd.org
(svn r26265) -Fix: Don't rebuild the link graph overlay cache twice in a row
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/smallmap_gui.cpp
Show inline comments
 
@@ -1306,13 +1306,12 @@ void SmallMapWindow::SetOverlayCargoMask
 
{
 
	uint32 cargo_mask = 0;
 
	for (int i = 0; i != _smallmap_cargo_count; ++i) {
 
		if (_legend_linkstats[i].show_on_map) SetBit(cargo_mask, _legend_linkstats[i].type);
 
	}
 
	this->overlay->SetCargoMask(cargo_mask);
 
	this->overlay->RebuildCache();
 
}
 

	
 
/**
 
 * Determines the mouse position on the legend.
 
 * @param pt Mouse position.
 
 * @return Legend item under the mouse.
0 comments (0 inline, 0 general)