1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-05 15:05:40 +02:00

Merge pull request #3090 from Laserlicht/fix_town_selection

[fix] no town selection on loadscreen
This commit is contained in:
Ivan Savenko 2023-10-22 12:01:00 +03:00 committed by GitHub
commit 07cd894024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 378 B

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -1001,6 +1001,9 @@ void OptionsTab::SelectedBox::showPopupWindow(const Point & cursorPosition)
void OptionsTab::SelectedBox::clickReleased(const Point & cursorPosition)
{
if(SEL->screenType != ESelectionScreen::newGame)
return;
PlayerInfo pi = SEL->getPlayerInfo(playerSettings.color);
const bool foreignPlayer = CSH->isGuest() && !CSH->isMyColor(playerSettings.color);