mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Fallback on invalid AnimationFramerate for legacy skins
This commit is contained in:
parent
9e52fbdd3e
commit
317bb5d0a4
@ -61,7 +61,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
var iniRate = source.GetConfig<GlobalSkinConfiguration, int>(GlobalSkinConfiguration.AnimationFramerate);
|
||||
|
||||
if (iniRate != null)
|
||||
if (iniRate != null && iniRate.Value > 0)
|
||||
return 1000f / iniRate.Value;
|
||||
|
||||
return 1000f / textures.Length;
|
||||
|
Loading…
Reference in New Issue
Block a user