Makes text speed function correctly
Checks if gtextspeed is 0, and if it is, sets it to 1, so that text still progresses normally if you don't change it in the enhancements menu.
This commit is contained in:
parent
8cded7320d
commit
b7a2a10e46
|
@ -951,7 +951,10 @@ void Message_DrawText(GlobalContext* globalCtx, Gfx** gfxP) {
|
|||
}
|
||||
}
|
||||
i = j - 1;
|
||||
msgCtx->textDrawPos = i + CVar_GetS32("gTextSpeed", 1);
|
||||
if (CVar_GetS32("gTextSpeed", 1) > 0)
|
||||
msgCtx->textDrawPos = i + CVar_GetS32("gTextSpeed", 1);
|
||||
else
|
||||
CVar_SetS32("gTextSpeed", 1);
|
||||
|
||||
if (character) {}
|
||||
}
|
||||
|
@ -1144,7 +1147,10 @@ void Message_DrawText(GlobalContext* globalCtx, Gfx** gfxP) {
|
|||
}
|
||||
}
|
||||
if (msgCtx->textDelayTimer == 0) {
|
||||
msgCtx->textDrawPos = i + CVar_GetS32("gTextSpeed", 1);
|
||||
if (CVar_GetS32("gTextSpeed", 1) > 0)
|
||||
msgCtx->textDrawPos = i + CVar_GetS32("gTextSpeed", 1);
|
||||
else
|
||||
CVar_SetS32("gTextSpeed", 1);
|
||||
msgCtx->textDelayTimer = msgCtx->textDelay;
|
||||
} else {
|
||||
msgCtx->textDelayTimer--;
|
||||
|
|
Loading…
Reference in New Issue