Skip to content

Commit cfeba5e

Browse files
author
Michel Iwaniec
committed
Fix bug with end screen garbage character
* Add -1 to the comparison of sizeof(end_text), to compensate for the implicit zero-terminator in ASCIIZ string * Update build binaries
1 parent 9a2a549 commit cfeba5e

File tree

7 files changed

+1
-1
lines changed

7 files changed

+1
-1
lines changed

build/duck/blackcastle.duck

0 Bytes
Binary file not shown.

build/gb/blackcastle.gb

0 Bytes
Binary file not shown.

build/gg/blackcastle.gg

0 Bytes
Binary file not shown.

build/nes/blackcastle.nes

0 Bytes
Binary file not shown.

build/pocket/blackcastle.pocket

0 Bytes
Binary file not shown.

build/sms/blackcastle.sms

0 Bytes
Binary file not shown.

src/global.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ void enter_end(void)
10211021
game_state = GS_TITLE;
10221022
}
10231023

1024-
if(text_index < sizeof(end_text))
1024+
if(text_index < sizeof(end_text)-1)
10251025
{
10261026
if(--text_delay == 0)
10271027
{

0 commit comments

Comments
 (0)