diff options
author | Jan <sentrycraft123@gmail.com> | 2023-06-29 04:22:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 23:22:33 -0400 |
commit | efd907105cf7906c78253631f75bf4fd83f769db (patch) | |
tree | 0516853204106852adb06ee1d69a74e8994309a0 /NorthstarDLL/core/math | |
parent | b5c4e4e7ed81394070b05296ed087b6043d27667 (diff) | |
download | NorthstarLauncher-efd907105cf7906c78253631f75bf4fd83f769db.tar.gz NorthstarLauncher-efd907105cf7906c78253631f75bf4fd83f769db.zip |
Code cleanup (#478)v1.16.0-rc1v1.15.1-rc1v1.15.11.15.X
* turn implicit type casts into standard compliant explicit type casts
* correct includes and library names
* correct implicit use of std-namespaced functions
* turn incomplete virtual implementations into pure virtuals (this also follows what the Source SDK tier0 header does)
* define SqRecurseArgs ahead of implementation to fix templating problems
* switch out removed getentity with getthisentity
* fix calls to curl_easy_escape with wrong types
* replace winapi-specific function with std starts_with function
* format squirrel header
Diffstat (limited to 'NorthstarDLL/core/math')
-rw-r--r-- | NorthstarDLL/core/math/vector.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/NorthstarDLL/core/math/vector.h b/NorthstarDLL/core/math/vector.h index 95eae7ca..112fabdf 100644 --- a/NorthstarDLL/core/math/vector.h +++ b/NorthstarDLL/core/math/vector.h @@ -1,3 +1,5 @@ +#include <cmath> + #pragma once union Vector3 @@ -21,7 +23,7 @@ union Vector3 void MakeValid() { for (auto& fl : raw) - if (isnan(fl)) + if (std::isnan(fl)) fl = 0; } |