mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Make sure we actually have an ellipsis.
This commit is contained in:
parent
4845ba80bd
commit
79362501c1
@ -153,7 +153,7 @@ std::vector<std::string> * CMessage::breakText(std::string text, size_t maxLineS
|
||||
int pos = z-1;
|
||||
|
||||
// Do not break an ellipsis, backtrack until whitespace.
|
||||
if (text[z] == '.') {
|
||||
if (text[pos] == '.' && text[z] == '.') {
|
||||
while (pos != 0 && text[pos] != ' ')
|
||||
pos--;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user