diff options
author | withmorten <morten.with@gmail.com> | 2021-06-28 13:57:05 +0200 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-06-28 13:57:05 +0200 |
commit | d17d437de319ca4c388dc724cffea91702d3a699 (patch) | |
tree | 806104fa5fe0e994cd7f55f1b7b48dc64a998c44 /src/extras/screendroplets.cpp | |
parent | f8297df9c5a7d65d5658d1a8d85d391fbb15b95a (diff) |
rename clamp macro to Clamp to fix compilation with g++11 (and clamp2 for consistency sake)
Diffstat (limited to 'src/extras/screendroplets.cpp')
-rw-r--r-- | src/extras/screendroplets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extras/screendroplets.cpp b/src/extras/screendroplets.cpp index 1412141e..2485386b 100644 --- a/src/extras/screendroplets.cpp +++ b/src/extras/screendroplets.cpp @@ -423,7 +423,7 @@ ScreenDroplets::ProcessCameraMovement(void) ms_movingEnabled = !isTopDown && !isLookingInDirection; // 0 when looking stright up, 180 when looking up or down - ms_camUpAngle = RADTODEG(Acos(clamp(camUp.z, -1.0f, 1.0f))); + ms_camUpAngle = RADTODEG(Acos(Clamp(camUp.z, -1.0f, 1.0f))); } void |