mirror of
https://github.com/HarbourMasters/Starship
synced 2026-06-20 16:21:57 -04:00
fix bug in Message_DisplayText
This commit is contained in:
committed by
KiritoDv
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]) {
|
||||
|
||||
Reference in New Issue
Block a user