Skip to content

Commit 01c119e

Browse files
committed
console: use arrow sprite for caret
This replaces the placeholder caret with the same arrow sprite as is used in TR1X. Resolves LostArtefacts#91.
1 parent 57469f0 commit 01c119e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
- fixed the music at the beginning of Offshore Rig not playing (#150, regression from 0.1)
3737
- improved initial level load time by lazy-loading audio samples (#114)
3838
- improved crash debug information (#137)
39+
- improved the console caret sprite (#91)
3940

4041
## [0.2](https://github.com/LostArtefacts/TR2X/compare/0.1.1...0.2) - 2024-05-07
4142
- added dev console with the following commands:

src/game/console.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void Console_Open(void)
166166

167167
m_Prompt.caret = strlen(m_Prompt.text);
168168

169-
m_Prompt.caret_ts = Text_Create(MARGIN, -MARGIN, 0, "\x26");
169+
m_Prompt.caret_ts = Text_Create(MARGIN, -MARGIN, 0, "\x11");
170170
Text_SetScale(
171171
m_Prompt.caret_ts, PHD_ONE * m_PromptScale, PHD_ONE * m_PromptScale);
172172
Text_AlignBottom(m_Prompt.caret_ts, true);

src/game/text.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define CHAR_SECRET_1 0x7Fu
2020
#define CHAR_SECRET_2 0x80u
2121
#define CHAR_SECRET_3 0x81u
22-
#define IS_CHAR_LEGAL(c) ((c) <= CHAR_SECRET_3 && ((c) <= 10u || (c) >= 32u))
22+
#define IS_CHAR_LEGAL(c) ((c) <= CHAR_SECRET_3 && ((c) <= 18u || (c) >= 32u))
2323
#define IS_CHAR_SECRET(c) ((c) >= CHAR_SECRET_1 && (c) <= CHAR_SECRET_3)
2424
#define IS_CHAR_DIACRITIC(c) \
2525
((c) == '(' || (c) == ')' || (c) == '$' || (c) == '~')

0 commit comments

Comments
 (0)