From e819b20373031aa5f364ab6e1426a6748563e879 Mon Sep 17 00:00:00 2001 From: ikpil Date: Thu, 17 Aug 2023 23:28:00 +0900 Subject: [PATCH] add .editorconfig --- .editorconfig | 19 +++++++++++++++++++ src/DotRecast.Detour/DtUtils.cs | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..73e5b43 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +############################### +# Core EditorConfig Options # +############################### +root = true + +# All files +[*] +indent_style = space +charset = utf-8 + +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj,props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct,proto,json}] +indent_size = 2 + +[*.cs] +indent_size = 4 + +# Wrapping preferences +csharp_preserve_single_line_statements = true +csharp_preserve_single_line_blocks = true \ No newline at end of file diff --git a/src/DotRecast.Detour/DtUtils.cs b/src/DotRecast.Detour/DtUtils.cs index 08619b1..9171253 100644 --- a/src/DotRecast.Detour/DtUtils.cs +++ b/src/DotRecast.Detour/DtUtils.cs @@ -346,12 +346,12 @@ namespace DotRecast.Detour out int segMin, out int segMax) { const float EPS = 0.000001f; - + tmin = 0; tmax = 1; segMin = -1; segMax = -1; - + var dir = p1.Subtract(p0); var p0v = p0;