1
0
forked from mirrors/0ad

Fix trailing whitespace and add pre-commit hook

Some have their editor configured to remove trailing whitespace and
editing such a file would "fix" it, adding an unrelated change.

Fix whitespace violations excluding third party libs and generated files
like glad or patches.

Enable pre-commit hook trailing-whitespace to enforce it in the future.

Fixes: #8016
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-06-14 19:19:35 +02:00
parent e6ad1141fd
commit 58219b974c
208 changed files with 593 additions and 583 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ inline T Clamp(T value, T min, T max)
template<typename T>
inline T SmoothStep(T edge0, T edge1, T value)
{
value = Clamp<T>((value - edge0) / (edge1 - edge0), 0, 1);
value = Clamp<T>((value - edge0) / (edge1 - edge0), 0, 1);
return value * value * (3 - 2 * value);
}