- Fixed random AI profile selection in non-Quest games.

This commit is contained in:
Agetian
2016-02-06 20:35:48 +00:00
parent 6159488388
commit 8b97ddf437

View File

@@ -56,8 +56,8 @@ public final class GamePlayerUtil {
String lastProfileChosen = FModel.getPreferences().getPref(FPref.UI_CURRENT_AI_PROFILE);
player.setRotateProfileEachGame(lastProfileChosen.equals(AiProfileUtil.AI_PROFILE_RANDOM_DUEL));
if (lastProfileChosen.equals(AiProfileUtil.AI_PROFILE_RANDOM_MATCH)) {
lastProfileChosen = "Default";
System.out.println(String.format("AI profile %s was chosen for the lobby player %s.", lastProfileChosen, player.getName()));
lastProfileChosen = AiProfileUtil.getRandomProfile();
//System.out.println(String.format("AI profile %s was chosen for the lobby player %s.", lastProfileChosen, player.getName()));
}
player.setAiProfile(lastProfileChosen);
player.setAvatarIndex(avatarIndex);