mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
Fixed a bug where PNG sprites without an offset incorrectly had their offset centered instead of using (0, 0)
This commit is contained in:
parent
0486845a1f
commit
3af704b7a6
1 changed files with 2 additions and 3 deletions
|
@ -99,11 +99,10 @@ namespace CodeImp.DoomBuilder.Data
|
|||
scale.x = 1.0f;
|
||||
scale.y = 1.0f;
|
||||
|
||||
// Make offset corrections if the offset was not given
|
||||
// Set the offset if the offset was not given
|
||||
if ((offsetx == int.MinValue) || (offsety == int.MinValue))
|
||||
{
|
||||
offsetx = (int)((width * scale.x) * 0.5f);
|
||||
offsety = (int)(height * scale.y);
|
||||
offsetx = offsety = 0;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue