Space Soccer: Backwards compatibility with levels using old swing system.

This commit is contained in:
Jenny Crowe 2022-02-27 15:12:17 -07:00
parent 5a7268c3dc
commit dbe1e011c9
2 changed files with 7 additions and 0 deletions

View file

@ -85,6 +85,9 @@ namespace RhythmHeavenMania.Games.SpaceSoccer
else
{
highKickSwing = highKicks[i].swing;
if (highKickSwing == 0f)
highKickSwing = 0.5f;
if (highKicks[i].beat + GetAnimLength(State.HighKicked) > currentBeat)
{
//Debug.Log("Setting state to high kick");

View file

@ -203,7 +203,11 @@ namespace RhythmHeavenMania.Games.SpaceSoccer
canKick = false;
if (ball)
{
ball.highKickSwing = highKicks[i].swing;
if (ball.highKickSwing == 0f)
ball.highKickSwing = 0.5f;
}
break;
}
else