Sfoglia il codice sorgente

Fixed 1888 - centering adv.map will also redraw minimap

Ivan Savenko 11 anni fa
parent
commit
818a766fd6
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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)