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 b8cbbbbd97
commit 5c44ca09ec
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