diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2024-04-03 01:33:51 -0300 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-04-06 04:33:13 -0600 |
| commit | dc3fe4def717acb273237a5c393d689a1281aaa8 (patch) | |
| tree | f765d6943cf91ac79097b65005467708c6b96c3f /src/engine | |
| parent | ab4826b53760d3f7030220ca8d2de39b711cf68a (diff) | |
fix level select
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/fox_message.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/fox_message.c b/src/engine/fox_message.c index 3bb859c3..26e73290 100644 --- a/src/engine/fox_message.c +++ b/src/engine/fox_message.c @@ -1,4 +1,5 @@ #include "global.h" +#include "mods.h" u16* Message_PtrFromId(u16 msgId) { s32 i; @@ -40,10 +41,15 @@ s32 Message_GetWidth(u16* msgPtr) { } s32 Message_GetCharCount(u16* msgPtr) { +#if MODS_LEVEL_SELECT == 1 + if (gCurrentPlanet == 6) { + return 0; + } +#endif s32 count = 0; u16* msgChar = msgPtr; - while (*msgChar != 0) { + while (*msgChar != NULL) { count++; msgChar++; } |
