2
0
Эх сурвалжийг харах

Fix freeze on moving through teleporters without set path

Ivan Savenko 2 жил өмнө
parent
commit
c330998518

+ 4 - 7
client/HeroMovementController.cpp

@@ -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()