mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Apply batch fixing of built-in types using var
This commit is contained in:
@ -32,7 +32,7 @@ namespace osu.Game.Rulesets.UI.Scrolling.Algorithms
|
||||
|
||||
public float GetLength(double startTime, double endTime, double timeRange, float scrollLength)
|
||||
{
|
||||
var objectLength = relativePositionAt(endTime, timeRange) - relativePositionAt(startTime, timeRange);
|
||||
double objectLength = relativePositionAt(endTime, timeRange) - relativePositionAt(startTime, timeRange);
|
||||
return (float)(objectLength * scrollLength);
|
||||
}
|
||||
|
||||
@ -90,7 +90,7 @@ namespace osu.Game.Rulesets.UI.Scrolling.Algorithms
|
||||
{
|
||||
generatePositionMappings(timeRange);
|
||||
|
||||
var mappingIndex = positionMappings.BinarySearch(search, comparer ?? Comparer<PositionMapping>.Default);
|
||||
int mappingIndex = positionMappings.BinarySearch(search, comparer ?? Comparer<PositionMapping>.Default);
|
||||
|
||||
if (mappingIndex < 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user