File diff r23123:aa31147b532e → r23124:8fa6d269005b
src/smallmap_gui.cpp
Show inline comments
 
@@ -1567,16 +1567,16 @@ int SmallMapWindow::GetPositionOnLegend(
 
			Point pt = {cursor_x, cursor_y};
 
			this->SetZoomLevel((wheel < 0) ? ZLC_ZOOM_IN : ZLC_ZOOM_OUT, &pt);
 
		}
 
	}
 
}
 

	
 
/* virtual */ void SmallMapWindow::OnTick()
 
/* virtual */ void SmallMapWindow::OnRealtimeTick(uint delta_ms)
 
{
 
	/* Update the window every now and then */
 
	if (--this->refresh != 0) return;
 
	if (!TimerElapsed(this->refresh, delta_ms)) return;
 

	
 
	if (this->map_type == SMT_LINKSTATS) {
 
		uint32 company_mask = this->GetOverlayCompanyMask();
 
		if (this->overlay->GetCompanyMask() != company_mask) {
 
			this->overlay->SetCompanyMask(company_mask);
 
		} else {