mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-20 10:53:19 +00:00
Fixed, DB2 bug: scaled size of a texture is an integer value in ZDoom, so we should also treat it as such.
This commit is contained in:
parent
7febb2434f
commit
027df50640
1 changed files with 3 additions and 2 deletions
|
@ -114,8 +114,9 @@ namespace CodeImp.DoomBuilder.Data
|
|||
public int Width { get { return width; } }
|
||||
public int Height { get { return height; } }
|
||||
internal int PreviewIndex { get { return previewindex; } set { previewindex = value; } }
|
||||
public float ScaledWidth { get { return width * scale.x; } }
|
||||
public float ScaledHeight { get { return height * scale.y; } }
|
||||
//mxd. Scaled texture size is integer in ZDoom.
|
||||
public float ScaledWidth { get { return (float)Math.Round(width * scale.x); } }
|
||||
public float ScaledHeight { get { return (float)Math.Round(height * scale.y); } }
|
||||
public Vector2D Scale { get { return scale; } }
|
||||
public bool WorldPanning { get { return worldpanning; } }
|
||||
public int Level { get { return level; } } //mxd
|
||||
|
|
Loading…
Reference in a new issue