1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed centering of scenario information window

This commit is contained in:
Ivan Savenko 2023-04-19 23:11:44 +03:00
parent 5a5aced67e
commit 3d30e04184
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@
### GENERAL: ### GENERAL:
* Fixed movement cost penalty from terrain * Fixed movement cost penalty from terrain
* Fixed empty Black Market on game start * Fixed empty Black Market on game start
* Fixed centering of scenario information window
* Fixed blocked progress in Launcher on language detection failure * Fixed blocked progress in Launcher on language detection failure
* Launcher will now correctly handle selection of Data directory in H3 install * Launcher will now correctly handle selection of Data directory in H3 install

View File

@ -26,6 +26,10 @@
CScenarioInfoScreen::CScenarioInfoScreen() CScenarioInfoScreen::CScenarioInfoScreen()
{ {
OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE; OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
pos.w = 800;
pos.h = 600;
pos = center();
localSi = new StartInfo(*LOCPLINT->cb->getStartInfo()); localSi = new StartInfo(*LOCPLINT->cb->getStartInfo());
localMi = new CMapInfo(); localMi = new CMapInfo();
localMi->mapHeader = std::unique_ptr<CMapHeader>(new CMapHeader(*LOCPLINT->cb->getMapHeader())); localMi->mapHeader = std::unique_ptr<CMapHeader>(new CMapHeader(*LOCPLINT->cb->getMapHeader()));