Fix subregion batching in screen space.

This commit is contained in:
Pieter-Jan Briers
2019-02-05 19:13:14 +01:00
parent 4efca634b2
commit 006342e4d8

View File

@@ -411,7 +411,14 @@ namespace SS14.Client.Graphics.Clyde
{
var (w, h) = loadedTexture.Size;
var csr = command.SubRegion.Value;
sr = new UIBox2(csr.Left / w, csr.Top / h, csr.Right / w, csr.Bottom / h);
if (_currentSpace == CurrentSpace.WorldSpace)
{
sr = new UIBox2(csr.Left / w, csr.Top / h, csr.Right / w, csr.Bottom / h);
}
else
{
sr = new UIBox2(csr.Left / w, csr.Bottom / h, csr.Right / w, csr.Top / h);
}
}
else
{