Преглед на файлове

Fix freeze on moving through teleporters without set path

Ivan Savenko преди 2 години
родител
ревизия
c330998518
променени са 1 файла, в които са добавени 4 реда и са изтрити 7 реда
  1. 4 7
      client/HeroMovementController.cpp

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