New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: /triggers debug view doesn't show if a CPos trigger gets removed #20531
Comments
Related source lines. It would suggest that trigger positions in actor map are not updated. OpenRA/OpenRA.Mods.Common/Traits/World/CellTriggerOverlay.cs Lines 68 to 87 in c82be17
In ActorMap the cell triggers are maintained by key in a hash map. The entries are removed but the key is not removed from the cellTriggerInfluence dictionary. OpenRA/OpenRA.Mods.Common/Traits/World/ActorMap.cs Lines 540 to 552 in c82be17
One fix would be for the overlay to check if the position keys actually contain any cell triggers. I.e. if the dictionary value has any A better fix may be to remove the key from the Please propose the best solution. |
Issue Summary
/triggers debug view doesn't show if a CPos trigger gets removed
Reproduction
Have a script where a CPos trigger gets added then removed.
Expected behavior
The overlay should be removed once a CPos trigger gets removed.
Tested on:playtest-20221203
The text was updated successfully, but these errors were encountered: