Ver Fonte

"Next Hero" on adventure map now selects heroes who have movement points left, rather than those who don't.

OnionKnight há 16 anos atrás
pai
commit
1ef51b6888
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      client/CAdvmapInterface.cpp

+ 1 - 1
client/CAdvmapInterface.cpp

@@ -1444,7 +1444,7 @@ void CAdvMapInt::fnextHero()
 		i++;
 		i++;
 		if(i >= LOCPLINT->wanderingHeroes.size())
 		if(i >= LOCPLINT->wanderingHeroes.size())
 			i = 0;
 			i = 0;
-	} while (LOCPLINT->wanderingHeroes[i]->movement && i!=start);
+	} while (!LOCPLINT->wanderingHeroes[i]->movement && i!=start);
 	heroList.select(i);
 	heroList.select(i);
 }
 }