Fix offsets(hold ones are still buggy tho)

This commit is contained in:
Spel0 2021-08-12 12:56:59 +03:00
parent f35bce9dbc
commit 44fa55f165

View File

@ -3096,7 +3096,7 @@ class PlayState extends MusicBeatState
{ {
spr.animation.play('confirm', true); spr.animation.play('confirm', true);
} }
if (spr.animation.curAnim.name == 'confirm' && !curStage.startsWith('school')) if (spr.animation.curAnim.name == 'confirm' && SONG.noteStyle != 'pixel')
{ {
spr.centerOffsets(); spr.centerOffsets();
spr.offset.x -= 13; spr.offset.x -= 13;
@ -3131,7 +3131,7 @@ class PlayState extends MusicBeatState
{ {
spr.animation.play('confirm', true); spr.animation.play('confirm', true);
} }
if (spr.animation.curAnim.name == 'confirm' && !curStage.startsWith('school')) if (spr.animation.curAnim.name == 'confirm' && SONG.noteStyle != 'pixel')
{ {
spr.centerOffsets(); spr.centerOffsets();
spr.offset.x -= 13; spr.offset.x -= 13;
@ -4029,7 +4029,7 @@ class PlayState extends MusicBeatState
{ {
spr.animation.play('confirm', true); spr.animation.play('confirm', true);
} }
if (spr.animation.curAnim.name == 'confirm' && !curStage.startsWith('school')) if (spr.animation.curAnim.name == 'confirm' && SONG.noteStyle != 'pixel')
{ {
spr.centerOffsets(); spr.centerOffsets();
spr.offset.x -= 13; spr.offset.x -= 13;
@ -4058,7 +4058,7 @@ class PlayState extends MusicBeatState
if (!keys[spr.ID]) if (!keys[spr.ID])
spr.animation.play('static', false); spr.animation.play('static', false);
if (spr.animation.curAnim.name == 'confirm' && !curStage.startsWith('school')) if (spr.animation.curAnim.name == 'confirm' && SONG.noteStyle != 'pixel')
{ {
spr.centerOffsets(); spr.centerOffsets();
spr.offset.x -= 13; spr.offset.x -= 13;