mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Merge pull request #24440 from peppy/multi-spectator-animation-fix
Fix centred player not animating correctly
This commit is contained in:
commit
e591c7273b
@ -67,6 +67,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
|
||||
[TestCase(1)]
|
||||
[TestCase(4)]
|
||||
[TestCase(9)]
|
||||
public void TestGeneral(int count)
|
||||
{
|
||||
int[] userIds = getPlayerIds(count);
|
||||
|
@ -74,7 +74,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
);
|
||||
|
||||
// If we don't track the animating state, the animation will also occur when resizing the window.
|
||||
isAnimating &= !Precision.AlmostEquals(Position, targetPos, 0.01f);
|
||||
isAnimating &= !Precision.AlmostEquals(Size, targetSize, 0.5f);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user