mirror of
https://github.com/ppy/osu.git
synced 2025-02-28 06:12:54 +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(1)]
|
||||||
[TestCase(4)]
|
[TestCase(4)]
|
||||||
|
[TestCase(9)]
|
||||||
public void TestGeneral(int count)
|
public void TestGeneral(int count)
|
||||||
{
|
{
|
||||||
int[] userIds = getPlayerIds(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.
|
// 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>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user