From 3a2f959a6ba3655f8c7da6fcde16a96996351e3d Mon Sep 17 00:00:00 2001 From: spherallic Date: Mon, 9 Jan 2023 16:30:21 +0100 Subject: [PATCH] Disable sector increment warning --- Source/Core/Config/GeneralizedOption.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Core/Config/GeneralizedOption.cs b/Source/Core/Config/GeneralizedOption.cs index 5fd3ed6..1b621b3 100644 --- a/Source/Core/Config/GeneralizedOption.cs +++ b/Source/Core/Config/GeneralizedOption.cs @@ -92,11 +92,11 @@ namespace CodeImp.DoomBuilder.Config bitstep = bits[1].Index; // Check the rest of the values - for(int i = 1; i < bits.Count; i++) - { - if(bits[i].Index - bits[i - 1].Index != bitstep) - General.ErrorLogger.Add(ErrorType.Warning, "Structure \"" + fullpath + "." + name + "\" contains options with mixed increments (option \"" + bits[i].Title + "\" increment (" + (bits[i - 1].Index - bits[i].Index) + ") doesn't match the structure increment (" + bitstep + "))."); - } + //for(int i = 1; i < bits.Count; i++) + //{ + // if(bits[i].Index - bits[i - 1].Index != bitstep) + // General.ErrorLogger.Add(ErrorType.Warning, "Structure \"" + fullpath + "." + name + "\" contains options with mixed increments (option \"" + bits[i].Title + "\" increment (" + (bits[i - 1].Index - bits[i].Index) + ") doesn't match the structure increment (" + bitstep + "))."); + //} } // We have no destructor