mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-26 10:19:22 +01:00
FNA doesn't support vector offsets
This commit is contained in:
parent
740c65a887
commit
ff92a00e1a
1 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,6 @@ using System.Text.RegularExpressions;
|
|||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Content;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using MLEM.Extensions;
|
||||
using MLEM.Misc;
|
||||
using MLEM.Textures;
|
||||
#if FNA
|
||||
|
@ -172,7 +171,7 @@ namespace MLEM.Data {
|
|||
var piv = pivot;
|
||||
var off = offset + addedOff;
|
||||
|
||||
loc.Offset(off);
|
||||
loc.Offset(off.ToPoint());
|
||||
if (piv != Vector2.Zero) {
|
||||
piv += off;
|
||||
if (!pivotRelative)
|
||||
|
|
Loading…
Reference in a new issue