mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 17:52:08 -10:00
If a message string contained a word that was too long, on its own, for the available screen real estate, the function wouldn't split the string at all. The new behavior is to split the string even if the split location is suboptimal, since it's better to have as much of the message visible as possible. Quoting from the code: ``` // only update the line break if: // a) we don't have a line break yet; // b) we're still within the required real estate // (basically we want the latest line break that doesn't go off the edge of the screen, // but if the *first* line break is off the end of the screen, we want that) ```