Fixed: all the old magic in SafeDistanceToSq is now only working for non-UDMF maps

This commit is contained in:
ZZYZX 2017-04-04 14:06:08 +03:00
parent 8dbe5f7a7b
commit 983dea1b8a
3 changed files with 6 additions and 6 deletions

View file

@ -986,11 +986,11 @@ namespace CodeImp.DoomBuilder.Map
// Limit intersection offset to the line
if (bounded)
{
if (lengthinv > 1)
if (General.Map.UDMF)
{
u = Math.Max(0f, Math.Min(1f, u)); // [ZZ] todo: understand why this worked
u = Math.Max(0f, Math.Min(1f, u));
}
else
else // restore old way for visplane explorer (which doesn't work for UDMF anyway)
{
u = Math.Max(lengthinv, Math.Min(1f - lengthinv, u));
}

View file

@ -30,6 +30,6 @@ using CodeImp.DoomBuilder;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.3.0.2964")]
[assembly: AssemblyVersion("2.3.0.2966")]
[assembly: NeutralResourcesLanguageAttribute("en")]
[assembly: AssemblyHash("b80c8fe")]
[assembly: AssemblyHash("8dbe5f7")]

View file

@ -29,5 +29,5 @@ using System.Resources;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.3.0.2964")]
[assembly: AssemblyVersion("2.3.0.2966")]
[assembly: NeutralResourcesLanguageAttribute("en")]