Fix selection cursor behaviour

Fix erroneous minimap selection cursor when not in classic mode

Fix selection cursor not showing up with units selected when not in classic mouse style
This commit is contained in:
Dominic Renaud
2025-12-28 16:06:07 -08:00
committed by Paul Chote
parent 4c2f52a465
commit 032f20b622
2 changed files with 8 additions and 5 deletions

View File

@@ -101,11 +101,12 @@ namespace OpenRA.Mods.Common.Orders
.Where(o => o != null && o.Cursor != null);
var cursorOrder = ordersWithCursor.MaxByOrDefault(o => o.Order.OrderPriority);
if (cursorOrder != null)
return cursorOrder.Cursor;
useSelect = target.Type == TargetType.Actor && target.Actor.Info.HasTraitInfo<ISelectableInfo>() &&
(mi.Modifiers.HasModifier(Modifiers.Shift) || world.Selection.Actors.Count == 0);
(cursorOrder == null || world.Selection.Actors.Count == 0 || !InputOverridesSelection(world, worldPixel, mi));
if (!useSelect && cursorOrder != null)
return cursorOrder.Cursor;
}
return useSelect ? worldSelectCursor : worldDefaultCursor;