Skip to content

Commit c302668

Browse files
committed
fix the fix
1 parent 682caf4 commit c302668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Chikara/Renderer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,9 +1402,9 @@ void Renderer::drawFrame(float time)
14021402
notes_hidden[i]++;
14031403
} else {
14041404
size_t start = max(0, (n.start - time) / pre_time * NOTE_DEPTH_BUFFER_SIZE);
1405-
size_t end = min(NOTE_DEPTH_BUFFER_SIZE, (size_t)max(start, ((n.end - time) / pre_time * NOTE_DEPTH_BUFFER_SIZE)));
1405+
size_t end = min(NOTE_DEPTH_BUFFER_SIZE, max(start, ((n.end - time) / pre_time * NOTE_DEPTH_BUFFER_SIZE)));
14061406
n.hidden = false;
1407-
if (start >= end) // even after that casting hell it's not enough
1407+
if (start > end) // even after that casting hell it's not enough
14081408
return;
14091409
// fast path, will probably save a lot of time
14101410
if (!(depth_buf[start] && depth_buf[end])) {

0 commit comments

Comments
 (0)