mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fix skipping battle intro via click
This commit is contained in:
@ -654,6 +654,11 @@ void CPlayerInterface::buildChanged(const CGTownInstance *town, BuildingID build
|
|||||||
|
|
||||||
void CPlayerInterface::battleStartBefore(const CCreatureSet *army1, const CCreatureSet *army2, int3 tile, const CGHeroInstance *hero1, const CGHeroInstance *hero2)
|
void CPlayerInterface::battleStartBefore(const CCreatureSet *army1, const CCreatureSet *army2, int3 tile, const CGHeroInstance *hero1, const CGHeroInstance *hero2)
|
||||||
{
|
{
|
||||||
|
// when battle starts, game will send battleStart pack *before* movement confirmation
|
||||||
|
// and since network thread wait for battle intro to play, movement confirmation will only happen after intro
|
||||||
|
// leading to several bugs, such as blocked input during intro
|
||||||
|
stillMoveHero.setn(STOP_MOVE);
|
||||||
|
|
||||||
//Don't wait for dialogs when we are non-active hot-seat player
|
//Don't wait for dialogs when we are non-active hot-seat player
|
||||||
if (LOCPLINT == this)
|
if (LOCPLINT == this)
|
||||||
waitForAllDialogs();
|
waitForAllDialogs();
|
||||||
|
Reference in New Issue
Block a user