Skip to content

Commit 0cfdd33

Browse files
committed
Help Screen: Paginate on section breaks (horiz. rules)
1 parent 082a6f6 commit 0cfdd33

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGES.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Firefighting game for the Atari 8-bit
44
Bill Kendrick <[email protected]>
55
http://www.newbreedsoftware.com/firefighter/
66

7-
0.1-beta-7 (2023-09-20):
7+
0.1-beta-7 (2023-09-21):
88
* Gameplay:
99
* Pushing joystick into a valve no longer causes it
1010
to toggle open/close quickly. Release joystick,
@@ -13,6 +13,8 @@ http://www.newbreedsoftware.com/firefighter/
1313
* Added a splash screen (disk version)
1414
* Title screen:
1515
* Pause [Select] key repeat when wrapping back to level 1
16+
* Help screen:
17+
* Page breaks every horizontal rule (section break).
1618
* Building:
1719
* "tools/release.sh" checks Makefile version vs README.md
1820
* WIP - Optimizations:

src/help.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Bill Kendrick <[email protected]>
66
http://www.newbreedsoftware.com/firefighter/
77
8-
2023-08-22 - 2023-09-20
8+
2023-08-22 - 2023-09-21
99
*/
1010

1111
#include <atari.h>
@@ -120,7 +120,7 @@ void show_help(void) {
120120
draw_text(str, scr_mem + y * 40 + 1); /* N.B. Indent by 1 to center it; text is word-wrapped at 38 characters */
121121
y++;
122122

123-
} while (!eof && y < LINES);
123+
} while (!eof && y < LINES && str[0] != '-');
124124

125125
cur_page++;
126126
draw_number(cur_page, 2, scr_mem + ((LINES + 1) * 40));

0 commit comments

Comments
 (0)