From 8366b84736023af3ee7c84a16a7ed5196b665df6 Mon Sep 17 00:00:00 2001 From: APN-Pucky Date: Tue, 12 Dec 2017 22:10:17 +0100 Subject: [PATCH] Mono Annealing --- tyrant_optimize.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tyrant_optimize.cpp b/tyrant_optimize.cpp index 910648a5..1ea6360f 100644 --- a/tyrant_optimize.cpp +++ b/tyrant_optimize.cpp @@ -1583,6 +1583,12 @@ void simulated_annealing(unsigned num_min_iterations, unsigned num_iterations, D { continue; } + + //mono + if(faction != allfactions && card->m_faction != faction) + { + continue; + } all_candidates.emplace_back(card); }