1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

no town selection on loadscreen

This commit is contained in:
Laserlicht 2023-10-21 19:10:02 +02:00 committed by GitHub
parent f3acc939b9
commit a042cc46c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);