diff --git a/src/Battling/Flow/TurnOrdering.cpp b/src/Battling/Flow/TurnOrdering.cpp index 6fee80c..28a4efc 100644 --- a/src/Battling/Flow/TurnOrdering.cpp +++ b/src/Battling/Flow/TurnOrdering.cpp @@ -7,10 +7,8 @@ using namespace CreatureLib; using namespace Battling; class ChoiceCompare { - Arbutils::Random& _rand; - public: - explicit ChoiceCompare(Arbutils::Random& rand) : _rand(rand) {} + explicit ChoiceCompare() {} bool operator()(const BaseTurnChoice* a, const BaseTurnChoice* b) { auto aKind = a->GetKind(); auto bKind = b->GetKind(); @@ -27,11 +25,10 @@ public: if (aSpeed != bSpeed) return aSpeed > bSpeed; - auto randomValue = _rand.Get(2); - return randomValue == 0; + return true; } }; void TurnOrdering::OrderChoices(std::vector& vec, Arbutils::Random& rand) { - std::sort(vec.begin(), vec.end(), ChoiceCompare(rand)); + std::sort(vec.begin(), vec.end(), ChoiceCompare()); }