Fix invalid flashlight size calculation

This regressed in #20714. One usage of `getSizeFor(0)` was replaced by
`adjustSize(GetSize())`, but another usage of `getSizeFor(Combo.Value)`
was replaced by `adjustSize(Combo.Value)`, which is not correct, since
`adjustSize()` is expecting to receive a combo-based size, rather than a
combo value directly.
This commit is contained in:
Bartłomiej Dach 2022-10-25 20:03:22 +02:00
parent 93e9b4a2c5
commit e3bc1126d7
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ protected override void Update()
FlashlightPosition = ToLocalSpace(taikoPlayfield.HitTarget.ScreenSpaceDrawQuad.Centre);
ClearTransforms(targetMember: nameof(FlashlightSize));
FlashlightSize = adjustSize(Combo.Value);
FlashlightSize = adjustSize(GetSize());
flashlightProperties.Validate();
}