mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-25 13:21:28 +00:00
Disable decimal vertex positions since SRB2 doesn't support them
This commit is contained in:
parent
247ce2fec2
commit
e1726d8515
2 changed files with 4 additions and 4 deletions
|
@ -165,7 +165,7 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
internal void SetGridSize(double size)
|
||||
{
|
||||
//mxd. Bad things happen when size <= 0
|
||||
size = Math.Max(size, ((General.Map != null && General.Map.UDMF) ? MINIMUM_GRID_SIZE_UDMF : MINIMUM_GRID_SIZE));
|
||||
size = Math.Max(size, MINIMUM_GRID_SIZE); // ((General.Map != null && General.Map.UDMF) ? MINIMUM_GRID_SIZE_UDMF : MINIMUM_GRID_SIZE));
|
||||
|
||||
// Change grid
|
||||
gridsizef = size;
|
||||
|
@ -309,7 +309,7 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
internal void DecreaseGrid()
|
||||
{
|
||||
//mxd. Not lower than 0.125 in UDMF or 1 otherwise
|
||||
float preminsize = (General.Map.UDMF ? MINIMUM_GRID_SIZE_UDMF * 2 : MINIMUM_GRID_SIZE * 2);
|
||||
float preminsize = MINIMUM_GRID_SIZE * 2; // (General.Map.UDMF ? MINIMUM_GRID_SIZE_UDMF * 2 : MINIMUM_GRID_SIZE * 2);
|
||||
if(gridsizef >= preminsize)
|
||||
{
|
||||
//mxd. Disable automatic grid resizing
|
||||
|
|
|
@ -67,8 +67,8 @@ namespace CodeImp.DoomBuilder.IO
|
|||
public override int MaxThings { get { return int.MaxValue; } }
|
||||
public override int MinTextureOffset { get { return int.MinValue; } }
|
||||
public override int MaxTextureOffset { get { return int.MaxValue; } }
|
||||
public override int VertexDecimals { get { return 5; } }
|
||||
public override string DecimalsFormat { get { return "0.00000"; } }
|
||||
public override int VertexDecimals { get { return 0; } } // SRB2 only has integer coordinates for the time being
|
||||
public override string DecimalsFormat { get { return "0"; } } // SRB2 only has integer coordinates for the time being
|
||||
public override bool HasLinedefTag { get { return true; } }
|
||||
public override bool HasThingTag { get { return true; } }
|
||||
public override bool HasThingAction { get { return true; } }
|
||||
|
|
Loading…
Reference in a new issue