mirror of
https://github.com/osukey/osukey.git
synced 2025-05-23 06:27:24 +09:00
Fix tests
This commit is contained in:
parent
2aa4d21c75
commit
15d159a97e
@ -30,14 +30,6 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
|||||||
|
|
||||||
public bool UpdateResult() => base.UpdateResult(true);
|
public bool UpdateResult() => base.UpdateResult(true);
|
||||||
|
|
||||||
protected override void UpdateInitialTransforms()
|
|
||||||
{
|
|
||||||
base.UpdateInitialTransforms();
|
|
||||||
|
|
||||||
// This hitobject should never expire, so this is just a safe maximum.
|
|
||||||
LifetimeEnd = LifetimeStart + 30000;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void UpdateHitStateTransforms(ArmedState state)
|
protected override void UpdateHitStateTransforms(ArmedState state)
|
||||||
{
|
{
|
||||||
// suppress the base call explicitly.
|
// suppress the base call explicitly.
|
||||||
|
@ -340,8 +340,10 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
{
|
{
|
||||||
protected override RectangleF GetConservativeBoundingBox(HitObjectLifetimeEntry entry)
|
protected override RectangleF GetConservativeBoundingBox(HitObjectLifetimeEntry entry)
|
||||||
{
|
{
|
||||||
var hitObject = (TestHitObject)entry.HitObject;
|
if (entry.HitObject is TestHitObject testObject)
|
||||||
return new RectangleF().Inflate(hitObject.Size / 2);
|
return new RectangleF().Inflate(testObject.Size / 2);
|
||||||
|
|
||||||
|
return base.GetConservativeBoundingBox(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user