contact-hud: NothingReadsSelection reads the paint inbox on every tick
A warning lives one tick, so the end-state read could not see a paint selection wrote; a hand mutant that paints on SetTarget survived. Builds (test-only change). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4708a71a67
commit
8f184a8f69
1 changed files with 7 additions and 2 deletions
|
|
@ -1233,9 +1233,14 @@ public sealed partial class ContactRevealTests : IDisposable
|
|||
selector.SetTarget(selected);
|
||||
Assert.Same(selected, selector.Target.Value.Entity); // fixture: it is selected
|
||||
|
||||
for (var i = 0; i < 20; i++) Tick(.1f);
|
||||
var paints = 0;
|
||||
for (var i = 0; i < 20; i++)
|
||||
{
|
||||
Tick(.1f);
|
||||
paints += selected.IncomingPaints.Count; // a warning lives one tick, so it is read on every tick
|
||||
}
|
||||
|
||||
Assert.Empty(selected.IncomingPaints);
|
||||
Assert.Equal(0, paints);
|
||||
Assert.False(selected.ContactOf(selector).Detected);
|
||||
Assert.Empty(selected.RevealedSubjects);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue