mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
Fixes text speed
This commit is contained in:
parent
0ee779f94a
commit
43cbd5a9fa
1 changed files with 8 additions and 2 deletions
|
@ -951,7 +951,10 @@ void Message_DrawText(GlobalContext* globalCtx, Gfx** gfxP) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i = j - 1;
|
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) {}
|
if (character) {}
|
||||||
}
|
}
|
||||||
|
@ -1144,7 +1147,10 @@ void Message_DrawText(GlobalContext* globalCtx, Gfx** gfxP) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (msgCtx->textDelayTimer == 0) {
|
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;
|
msgCtx->textDelayTimer = msgCtx->textDelay;
|
||||||
} else {
|
} else {
|
||||||
msgCtx->textDelayTimer--;
|
msgCtx->textDelayTimer--;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue