Add faction/interactability filtering to minimap icons
Filter hostile units, wrong-faction summoned NPCs, and non-interactable game objects from minimap tracking. Dynamic checks (UnitReaction, owner faction, GO_FLAG_NO_INTERACT) run every frame since group membership can change. GUID cache still handles static classification (NPC flags/subname). Also fix missing ECX clobber in outline UnitReaction inline asm.
This commit is contained in:
+1
-1
@@ -195,7 +195,7 @@ pub fn isUnitFriendly(unit: u32, local_player: u32) bool {
|
||||
: [_] "{ecx}" (local_player),
|
||||
[unit] "r" (unit),
|
||||
[func] "r" (@as(u32, o.FN_UNIT_REACTION)),
|
||||
: .{ .edx = true, .memory = true, .cc = true });
|
||||
: .{ .ecx = true, .edx = true, .memory = true, .cc = true });
|
||||
return reaction >= 4;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user