mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 03:35:10 +00:00
Space Soccer: Backwards compatibility with levels using old swing system.
This commit is contained in:
parent
b8cbbbbd97
commit
5c44ca09ec
2 changed files with 7 additions and 0 deletions
|
@ -85,6 +85,9 @@ namespace RhythmHeavenMania.Games.SpaceSoccer
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
highKickSwing = highKicks[i].swing;
|
highKickSwing = highKicks[i].swing;
|
||||||
|
if (highKickSwing == 0f)
|
||||||
|
highKickSwing = 0.5f;
|
||||||
|
|
||||||
if (highKicks[i].beat + GetAnimLength(State.HighKicked) > currentBeat)
|
if (highKicks[i].beat + GetAnimLength(State.HighKicked) > currentBeat)
|
||||||
{
|
{
|
||||||
//Debug.Log("Setting state to high kick");
|
//Debug.Log("Setting state to high kick");
|
||||||
|
|
|
@ -203,7 +203,11 @@ namespace RhythmHeavenMania.Games.SpaceSoccer
|
||||||
canKick = false;
|
canKick = false;
|
||||||
|
|
||||||
if (ball)
|
if (ball)
|
||||||
|
{
|
||||||
ball.highKickSwing = highKicks[i].swing;
|
ball.highKickSwing = highKicks[i].swing;
|
||||||
|
if (ball.highKickSwing == 0f)
|
||||||
|
ball.highKickSwing = 0.5f;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue