Prechádzať zdrojové kódy

Fix town UI update on building new structures

Ivan Savenko 2 rokov pred
rodič
commit
4c6dbb5037
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      client/windows/CCastleInterface.cpp

+ 2 - 0
client/windows/CCastleInterface.cpp

@@ -1259,6 +1259,7 @@ void CCastleInterface::addBuilding(BuildingID bid)
 	builds->addBuilding(bid);
 	recreateIcons();
 	activate();
+	redraw();
 }
 
 void CCastleInterface::removeBuilding(BuildingID bid)
@@ -1267,6 +1268,7 @@ void CCastleInterface::removeBuilding(BuildingID bid)
 	builds->removeBuilding(bid);
 	recreateIcons();
 	activate();
+	redraw();
 }
 
 void CCastleInterface::recreateIcons()