add endl support for fx cg models

This commit is contained in:
milang 2019-09-20 13:30:26 +02:00
parent 56831200e7
commit 8ee982094c
No known key found for this signature in database
GPG Key ID: D287C9D6C33D9035
1 changed files with 9 additions and 2 deletions

View File

@ -94,11 +94,18 @@ void ll_send(const char * txt)
p++;
if (c=='\0' || c=='\n')
p=0;
if (p==MAX_LENGHT)
if (p==MAX_LENGHT-1)
{
set_character('\0', p);
p=0;
add_line();
}
#ifdef FXCG50
if (dsize(&current_line->text[0])>396-3)
{
set_character('\0', p);
p=0;
}
#endif
i++;
}
}