mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-01-31 05:00:34 +00:00
Draw Grid Mode: fixed a crash that happened when having locking slices to grid enabled
This commit is contained in:
parent
913c857d4c
commit
51fa48a160
1 changed files with 3 additions and 3 deletions
|
@ -363,12 +363,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
case GridLockMode.VERTICAL:
|
case GridLockMode.VERTICAL:
|
||||||
slicesH = horizontalslices;
|
slicesH = horizontalslices;
|
||||||
slicesV = height / General.Map.Grid.GridSize;
|
slicesV = Math.Abs(height / General.Map.Grid.GridSize);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GridLockMode.BOTH:
|
case GridLockMode.BOTH:
|
||||||
slicesH = width / General.Map.Grid.GridSize;
|
slicesH = Math.Abs(width / General.Map.Grid.GridSize);
|
||||||
slicesV = height / General.Map.Grid.GridSize;
|
slicesV = Math.Abs(height / General.Map.Grid.GridSize);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue