mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
More CAutoMapper fixes
This commit is contained in:
@@ -390,7 +390,8 @@ void CTextExecuteBuffer::AddImage(const CFontImageDef& image)
|
||||
int width = tex->GetWidth() * image.x14_cropFactor.x;
|
||||
int height = tex->GetHeight() * image.x14_cropFactor.y;
|
||||
|
||||
if (xa4_curLine->x8_curX + width > xa0_curBlock->xc_blockExtentX && xa4_curLine->x4_wordCount > 0)
|
||||
if (x18_textState.x7c_enableWordWrap &&
|
||||
xa4_curLine->x8_curX + width > xa0_curBlock->xc_blockExtentX && xa4_curLine->x4_wordCount > 1)
|
||||
StartNewLine();
|
||||
|
||||
xa4_curLine->TestLargestImage(width, height, image.CalculateBaseline());
|
||||
|
||||
Reference in New Issue
Block a user