Fix image aspect of meshes embedded in messages (#1380)

shapetextures
Armin Burgmeier 2015-09-22 22:26:12 -04:00
parent 703f028392
commit f4a87d5d2f
1 changed files with 1 additions and 1 deletions

View File

@ -3668,7 +3668,7 @@ float C4Game::GetTextSpecImageAspect(const char* szSpec)
const StdMeshBox& box = mesh.GetBoundingBox();
// Note the bounding box is in OGRE frame of reference
return (box.y2 - box.y1) / (box.z2 - box.z1);
return (box.x2 - box.x1) / (box.y2 - box.y1);
}
return -1.0f;