mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-01-30 20:50:41 +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:
|
||||
slicesH = horizontalslices;
|
||||
slicesV = height / General.Map.Grid.GridSize;
|
||||
slicesV = Math.Abs(height / General.Map.Grid.GridSize);
|
||||
break;
|
||||
|
||||
case GridLockMode.BOTH:
|
||||
slicesH = width / General.Map.Grid.GridSize;
|
||||
slicesV = height / General.Map.Grid.GridSize;
|
||||
slicesH = Math.Abs(width / General.Map.Grid.GridSize);
|
||||
slicesV = Math.Abs(height / General.Map.Grid.GridSize);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue