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:
MaxED 2014-05-27 09:22:44 +00:00
parent 8ba1d9c3a7
commit dacd6d2abb
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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() {