mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 21:52:54 +08:00
Use more explicit match
`taiko-bar-right-glow` is a prefix of `taiko-bar-right`...
This commit is contained in:
parent
27b97a3c4d
commit
c21af1bf3d
@ -61,8 +61,11 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
// unfortunately at this level of lookup we can encounter `@2x` scale suffixes in the name,
|
||||
// so straight equality cannot be used.
|
||||
if (name.StartsWith(grayscaleSprite, StringComparison.OrdinalIgnoreCase))
|
||||
if (name.Equals(grayscaleSprite, StringComparison.OrdinalIgnoreCase)
|
||||
|| name.Equals($@"{grayscaleSprite}@2x", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user