瀏覽代碼

Fixed 1888 - centering adv.map will also redraw minimap

Ivan Savenko 11 年之前
父節點
當前提交
818a766fd6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      client/windows/CAdvmapInterface.cpp

+ 2 - 0
client/windows/CAdvmapInterface.cpp

@@ -765,6 +765,7 @@ void CAdvMapInt::selectionChanged()
 	if (selection != to)
 		select(to);
 }
+
 void CAdvMapInt::centerOn(int3 on)
 {
 	bool switchedLevels = on.z != position.z;
@@ -780,6 +781,7 @@ void CAdvMapInt::centerOn(int3 on)
 	underground->redraw();
 	if (switchedLevels)
 		minimap.setLevel(position.z);
+	minimap.redraw();
 }
 
 void CAdvMapInt::centerOn(const CGObjectInstance *obj)