mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +00:00
Map Analysis mode: "Check overlapping vertices" was setting incorrect total progress value, which could cause a crash in some cases.
This commit is contained in:
parent
8ba1d9c3a7
commit
dacd6d2abb
2 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Constructor
|
||||
public CheckOverlappingVertices() {
|
||||
// Total progress is done when all lines are checked
|
||||
SetTotalProgress(General.Map.Map.Linedefs.Count / PROGRESS_STEP);
|
||||
SetTotalProgress(General.Map.Map.Vertices.Count / PROGRESS_STEP);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace CodeImp.DoomBuilder.BuilderModes.ErrorChecks {
|
|||
|
||||
[ErrorChecker("Check unknown things", true, 50)]
|
||||
public class CheckUnknownThings : ErrorChecker {
|
||||
private int PROGRESS_STEP = 1000;
|
||||
|
||||
private const int PROGRESS_STEP = 1000;
|
||||
|
||||
// Constructor
|
||||
public CheckUnknownThings() {
|
||||
|
|
Loading…
Reference in a new issue