mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-13 22:06:58 +02:00
Fix for #1187
This commit is contained in:
parent
beac6b12d8
commit
dcedfb05d2
@ -2428,11 +2428,18 @@ void CPlayerInterface::artifactDisassembled(const ArtifactLocation &al)
|
|||||||
void CPlayerInterface::playerStartsTurn(ui8 player)
|
void CPlayerInterface::playerStartsTurn(ui8 player)
|
||||||
{
|
{
|
||||||
EVENT_HANDLER_CALLED_BY_CLIENT;
|
EVENT_HANDLER_CALLED_BY_CLIENT;
|
||||||
if (GH.listInt.empty() || GH.listInt.front() != adventureInt)
|
|
||||||
|
if (!vstd::contains (GH.listInt, adventureInt))
|
||||||
{
|
{
|
||||||
GH.popInts(GH.listInt.size());
|
GH.popInts (GH.listInt.size()); //after map load - remove everything else
|
||||||
GH.pushInt(adventureInt);
|
GH.pushInt (adventureInt);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
while (GH.listInt.front() != adventureInt && !dynamic_cast<CInfoWindow*>(GH.listInt.front())) //don't remove dialogs that expect query answer
|
||||||
|
GH.popInts(1);
|
||||||
|
}
|
||||||
|
|
||||||
if(howManyPeople == 1)
|
if(howManyPeople == 1)
|
||||||
{
|
{
|
||||||
GH.curInt = this;
|
GH.curInt = this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user