mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +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;
|
||||||
using Microsoft.Xna.Framework.Content;
|
using Microsoft.Xna.Framework.Content;
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
using MLEM.Extensions;
|
|
||||||
using MLEM.Misc;
|
using MLEM.Misc;
|
||||||
using MLEM.Textures;
|
using MLEM.Textures;
|
||||||
#if FNA
|
#if FNA
|
||||||
|
@ -172,7 +171,7 @@ namespace MLEM.Data {
|
||||||
var piv = pivot;
|
var piv = pivot;
|
||||||
var off = offset + addedOff;
|
var off = offset + addedOff;
|
||||||
|
|
||||||
loc.Offset(off);
|
loc.Offset(off.ToPoint());
|
||||||
if (piv != Vector2.Zero) {
|
if (piv != Vector2.Zero) {
|
||||||
piv += off;
|
piv += off;
|
||||||
if (!pivotRelative)
|
if (!pivotRelative)
|
||||||
|
|
Loading…
Reference in a new issue