Add contexts for hotkey validation

This commit is contained in:
Ivaylo Draganov
2022-01-25 17:45:00 +02:00
committed by Matthias Mailänder
parent 1bc95a290f
commit 1813edc74b
14 changed files with 359 additions and 175 deletions

View File

@@ -89,7 +89,7 @@ namespace OpenRA
if (kv.Key == name)
continue;
if (kv.Value == value && definitions[kv.Key].Types.Overlaps(definition.Types))
if (kv.Value == value && definitions[kv.Key].Contexts.Overlaps(definition.Contexts))
return definitions[kv.Key];
}