| 58 | } |
| 59 | |
| 60 | static bool Tactical_IsHighPriorityInRect(TacticalClass* pThis, LTRBStruct* rect) |
| 61 | { |
| 62 | for (const auto& selected : Array) |
| 63 | if (Tactical_IsInSelectionRect(pThis, rect, selected) && ObjectClass_IsSelectable(selected.Object)) |
| 64 | { |
| 65 | if ((selected.Object->AbstractFlags & AbstractFlags::Techno) != AbstractFlags::None) |
| 66 | { |
| 67 | if (!TechnoExt::ExtMap.Find(static_cast<TechnoClass*>(selected.Object))->TypeExtData->LowSelectionPriority) |
| 68 | return true; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | return false; |
| 73 | } |
| 74 | |
| 75 | // Reversed from Tactical::Select |
| 76 | static void Tactical_SelectFiltered(TacticalClass* pThis, LTRBStruct* pRect, callback_type check_callback, bool bPriorityFiltering) |