mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 01:21:17 +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
18253b5203
commit
e27efa5a2e
1 changed files with 2 additions and 1 deletions
|
@ -787,7 +787,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