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:
commit
07cd894024
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 |
@ -1001,6 +1001,9 @@ void OptionsTab::SelectedBox::showPopupWindow(const Point & cursorPosition)
|
|||||||
|
|
||||||
void OptionsTab::SelectedBox::clickReleased(const Point & cursorPosition)
|
void OptionsTab::SelectedBox::clickReleased(const Point & cursorPosition)
|
||||||
{
|
{
|
||||||
|
if(SEL->screenType != ESelectionScreen::newGame)
|
||||||
|
return;
|
||||||
|
|
||||||
PlayerInfo pi = SEL->getPlayerInfo(playerSettings.color);
|
PlayerInfo pi = SEL->getPlayerInfo(playerSettings.color);
|
||||||
const bool foreignPlayer = CSH->isGuest() && !CSH->isMyColor(playerSettings.color);
|
const bool foreignPlayer = CSH->isGuest() && !CSH->isMyColor(playerSettings.color);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user