Skip to content

Commit

Permalink
修复一个没有背景图的谱面会出现错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
MisaLiu committed Nov 1, 2022
1 parent 8c3a1e8 commit a823bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.js
Expand Up @@ -504,7 +504,7 @@ export default class Game
this.sprites.fakeJudgeline.width = this.render.sizer.width * progress;

// 背景图亮度
this.chart.sprites.bg.cover.alpha = this._settings.bgDim * progress;
if (this.chart.sprites.bg && this.chart.sprites.bg.cover) this.chart.sprites.bg.cover.alpha = this._settings.bgDim * progress;

if (_progress >= 1)
{
Expand Down

0 comments on commit a823bfc

Please sign in to comment.