mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 13:35:11 +03:00
fix bug in Message_DisplayText
This commit is contained in:
parent
eecfd795eb
commit
0a64a8176d
@ -69,13 +69,12 @@ bool Message_DisplayText(Gfx** gfxPtr, u16* msgPtr, s32 xPos, s32 yPos, s32 len)
|
||||
s32 xChar = xPos;
|
||||
s32 yChar = yPos;
|
||||
s32 i;
|
||||
s32 print;
|
||||
s32 print = false;
|
||||
|
||||
gDPSetPrimColor((*gfxPtr)++, 0x00, 0x00, 255, 255, 255, 255);
|
||||
gDPSetTextureLUT((*gfxPtr)++, G_TT_RGBA16);
|
||||
gDPLoadTLUT((*gfxPtr)++, 64, 256, gTextCharPalettes);
|
||||
|
||||
// bug: if the for loop is skipped, print is never initialized
|
||||
for (i = 0; msgPtr[i] != MSGCHAR_END && i < len; i++) {
|
||||
print = false;
|
||||
switch (msgPtr[i]) {
|
||||
|
Loading…
Reference in New Issue
Block a user