Skip to content

Commit 9e84a03

Browse files
author
LuMariGames
authored
Update main.cpp
1 parent 7359c16 commit 9e84a03

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

source/main.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,14 @@ int main() {
268268
//ノーツ描画
269269
for (int i = 0; i < MaxNotesCnt; ++i) {
270270

271-
if (Notes[i].y > BOTTOM_HEIGHT && Notes[i].scroll > 0) {
272-
Notes[i].flag = false;
273-
Combo = 0;
271+
if (Notes[i].flag) {
272+
if (Notes[i].y > BOTTOM_HEIGHT && Notes[i].scroll > 0) {
273+
Notes[i].flag = false;
274+
Combo = 0;
275+
}
276+
Note_x = 319.0 / Notes[i].keys;
277+
if (Notes[i].flag && Notes[i].y > -5.0f && Notes[i].y < BOTTOM_HEIGHT) C2D_DrawRectSolid(Note_x * Notes[i].num,Notes[i].y,0,Note_x,4,C2D_Color32(0x14, 0x91, 0xFF, 0xFF));
274278
}
275-
Note_x = 319.0 / Notes[i].keys;
276-
if (Notes[i].flag && Notes[i].y > -5.0f && Notes[i].y < BOTTOM_HEIGHT) C2D_DrawRectSolid(Note_x * Notes[i].num,Notes[i].y,0,Note_x,4,C2D_Color32(0x14, 0x91, 0xFF, 0xFF));
277279
}
278280

279281
//判定文字

0 commit comments

Comments
 (0)