mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- fixed DHudMessageTypeOnFadeOut's character counter to be UTF-8 compatible.
This was reading the string by byte and not by character and could end up printing incomplete UTF-8 data.
This commit is contained in:
parent
340d7bce8d
commit
c49665684b
1 changed files with 2 additions and 1 deletions
|
@ -771,7 +771,8 @@ bool DHUDMessageTypeOnFadeOut::Tick ()
|
|||
if (State == 3 && --step >= 0)
|
||||
{
|
||||
linedrawcount++;
|
||||
if (text[linevis++] == TEXTCOLOR_ESCAPE)
|
||||
|
||||
if (text.GetNextCharacter(linevis) == TEXTCOLOR_ESCAPE)
|
||||
{
|
||||
if (text[linevis] == '[')
|
||||
{ // named color
|
||||
|
|
Loading…
Reference in a new issue