mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Fix freeze on moving through teleporters without set path
This commit is contained in:
parent
97097c20ad
commit
c330998518
@ -203,15 +203,12 @@ void HeroMovementController::onTryMoveHero(const CGHeroInstance * hero, const Tr
|
||||
|
||||
void HeroMovementController::onQueryReplyApplied()
|
||||
{
|
||||
if(duringMovement)
|
||||
{
|
||||
// Server accepted our TeleportDialog query reply and moved hero
|
||||
// Continue moving alongside our path, if any
|
||||
waitingForQueryApplyReply = false;
|
||||
|
||||
assert(waitingForQueryApplyReply);
|
||||
waitingForQueryApplyReply = false;
|
||||
// Server accepted our TeleportDialog query reply and moved hero
|
||||
// Continue moving alongside our path, if any
|
||||
if(duringMovement)
|
||||
onMoveHeroApplied();
|
||||
}
|
||||
}
|
||||
|
||||
void HeroMovementController::onMoveHeroApplied()
|
||||
|
Loading…
x
Reference in New Issue
Block a user