1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-27 15:01:43 +02:00

cleaned up formatting

This commit is contained in:
Ell 2021-07-12 03:16:19 +02:00
parent 27fc5a74d9
commit 9a0b8ef846

View file

@ -71,12 +71,9 @@ namespace MLEM.Data {
loc.Offset(off); loc.Offset(off);
// pivot // pivot
var piv = Vector2.Zero; var piv = !match.Groups[6].Success ? Vector2.Zero : new Vector2(
if (match.Groups[6].Success) { float.Parse(match.Groups[6].Value, CultureInfo.InvariantCulture) - (pivotRelative ? 0 : loc.X),
piv = new Vector2( float.Parse(match.Groups[7].Value, CultureInfo.InvariantCulture) - (pivotRelative ? 0 : loc.Y));
float.Parse(match.Groups[6].Value, CultureInfo.InvariantCulture) - (pivotRelative ? 0 : loc.X),
float.Parse(match.Groups[7].Value, CultureInfo.InvariantCulture) - (pivotRelative ? 0 : loc.Y));
}
piv += off; piv += off;
var region = new TextureRegion(texture, loc) { var region = new TextureRegion(texture, loc) {