1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-29 23:58:34 +01:00

fixed image tokens drawing themselves too many times for split strings

This commit is contained in:
Ell 2021-06-25 16:40:09 +02:00
parent 14940d39c5
commit 705758090b

View file

@ -114,7 +114,7 @@ namespace MLEM.Formatting {
var line = token.SplitDisplayString[l]; var line = token.SplitDisplayString[l];
for (var i = 0; i < line.Length; i++) { for (var i = 0; i < line.Length; i++) {
var c = line[i]; var c = line[i];
if (i == 0) if (l == 0 && i == 0)
token.DrawSelf(time, batch, pos + innerOffset, font, color, scale, depth); token.DrawSelf(time, batch, pos + innerOffset, font, color, scale, depth);
var cString = c.ToCachedString(); var cString = c.ToCachedString();