From 104d89de917031a0b78e1207ede0530ad1d08768 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Tue, 28 Jun 2022 21:38:28 +0200 Subject: [PATCH] re-order to fix compilation --- src/include/unit_find.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/include/unit_find.h b/src/include/unit_find.h index 690f52d64..d03d32e97 100644 --- a/src/include/unit_find.h +++ b/src/include/unit_find.h @@ -258,6 +258,16 @@ void SelectFixed(const Vec2i <Pos, const Vec2i &rbPos, std::vector &u } } +template +void Select(const Vec2i <Pos, const Vec2i &rbPos, std::vector &units, Pred pred) +{ + Vec2i minPos = ltPos; + Vec2i maxPos = rbPos; + + Map.FixSelectionArea(minPos, maxPos); + SelectFixed(minPos, maxPos, units, pred); +} + template void SelectAroundUnit(const CUnit &unit, int range, std::vector &around, Pred pred) { @@ -269,16 +279,6 @@ void SelectAroundUnit(const CUnit &unit, int range, std::vector &around MakeAndPredicate(IsNotTheSameUnitAs(unit), pred)); } -template -void Select(const Vec2i <Pos, const Vec2i &rbPos, std::vector &units, Pred pred) -{ - Vec2i minPos = ltPos; - Vec2i maxPos = rbPos; - - Map.FixSelectionArea(minPos, maxPos); - SelectFixed(minPos, maxPos, units, pred); -} - template CUnit *FindUnit_IfFixed(const Vec2i <Pos, const Vec2i &rbPos, Pred pred) {