mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-27 07:27:12 +00:00
Merge pull request #2313 from FunkinCrew/bugfix/switch-pattern-typo
Fix a typo in PlayAnimationSongEvent
This commit is contained in:
commit
3142dee553
|
@ -31,13 +31,13 @@ class PlayAnimationSongEvent extends SongEvent
|
||||||
|
|
||||||
switch (targetName)
|
switch (targetName)
|
||||||
{
|
{
|
||||||
case 'boyfriend' || 'bf' || 'player':
|
case 'boyfriend' | 'bf' | 'player':
|
||||||
trace('Playing animation $anim on boyfriend.');
|
trace('Playing animation $anim on boyfriend.');
|
||||||
target = PlayState.instance.currentStage.getBoyfriend();
|
target = PlayState.instance.currentStage.getBoyfriend();
|
||||||
case 'dad' || 'opponent':
|
case 'dad' | 'opponent':
|
||||||
trace('Playing animation $anim on dad.');
|
trace('Playing animation $anim on dad.');
|
||||||
target = PlayState.instance.currentStage.getDad();
|
target = PlayState.instance.currentStage.getDad();
|
||||||
case 'girlfriend' || 'gf':
|
case 'girlfriend' | 'gf':
|
||||||
trace('Playing animation $anim on girlfriend.');
|
trace('Playing animation $anim on girlfriend.');
|
||||||
target = PlayState.instance.currentStage.getGirlfriend();
|
target = PlayState.instance.currentStage.getGirlfriend();
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue