summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Romeo <vittorio.romeo@outlook.com>2021-11-25 02:50:13 +0000
committerVittorio Romeo <vittorio.romeo@outlook.com>2021-11-25 02:50:13 +0000
commit3645cac0d93012becc68efa398ccfe9b7c45f963 (patch)
tree1790b049cbf2b3e5dc856cc64ef1a41e6b543707
parent37a5fbf2d47782d039f38bb34837d4247ba0e16b (diff)
Minor refactoring
-rw-r--r--include/SSVOpenHexagon/Components/CCustomWall.hpp1
-rw-r--r--include/SSVOpenHexagon/Components/SpeedData.hpp2
-rw-r--r--include/SSVOpenHexagon/Core/HexagonClient.hpp30
3 files changed, 17 insertions, 16 deletions
diff --git a/include/SSVOpenHexagon/Components/CCustomWall.hpp b/include/SSVOpenHexagon/Components/CCustomWall.hpp
index ebc71b92..1f0c67fa 100644
--- a/include/SSVOpenHexagon/Components/CCustomWall.hpp
+++ b/include/SSVOpenHexagon/Components/CCustomWall.hpp
@@ -5,6 +5,7 @@
#pragma once
#include "SSVOpenHexagon/Components/CCustomWallHandle.hpp"
+
#include "SSVOpenHexagon/Utils/PointInPolygon.hpp"
#include "SSVOpenHexagon/Utils/FastVertexVector.hpp"
diff --git a/include/SSVOpenHexagon/Components/SpeedData.hpp b/include/SSVOpenHexagon/Components/SpeedData.hpp
index 3c49c60e..9a47aeec 100644
--- a/include/SSVOpenHexagon/Components/SpeedData.hpp
+++ b/include/SSVOpenHexagon/Components/SpeedData.hpp
@@ -27,7 +27,7 @@ struct SpeedData
void update(const ssvu::FT ft) noexcept
{
- if(_accel == 0)
+ if(_accel == 0.f)
{
return;
}
diff --git a/include/SSVOpenHexagon/Core/HexagonClient.hpp b/include/SSVOpenHexagon/Core/HexagonClient.hpp
index 4acd5839..56a63fe1 100644
--- a/include/SSVOpenHexagon/Core/HexagonClient.hpp
+++ b/include/SSVOpenHexagon/Core/HexagonClient.hpp
@@ -47,21 +47,21 @@ public:
};
// clang-format off
- struct EConnectionSuccess { };
- struct EConnectionFailure { std::string error; };
- struct EKicked { };
- struct ERegistrationSuccess { };
- struct ERegistrationFailure { std::string error;};
- struct ELoginSuccess { };
- struct ELoginFailure { std::string error; };
- struct ELogoutSuccess { };
- struct ELogoutFailure { };
- struct EDeleteAccountSuccess { };
- struct EDeleteAccountFailure { std::string error; };
- struct EReceivedTopScores { std::string levelValidator; std::vector<Database::ProcessedScore> scores; };
- struct EReceivedOwnScore { std::string levelValidator; Database::ProcessedScore score; };
- struct EGameVersionMismatch { };
- struct EProtocolVersionMismatch { };
+ struct EConnectionSuccess { };
+ struct EConnectionFailure { std::string error; };
+ struct EKicked { };
+ struct ERegistrationSuccess { };
+ struct ERegistrationFailure { std::string error;};
+ struct ELoginSuccess { };
+ struct ELoginFailure { std::string error; };
+ struct ELogoutSuccess { };
+ struct ELogoutFailure { };
+ struct EDeleteAccountSuccess { };
+ struct EDeleteAccountFailure { std::string error; };
+ struct EReceivedTopScores { std::string levelValidator; std::vector<Database::ProcessedScore> scores; };
+ struct EReceivedOwnScore { std::string levelValidator; Database::ProcessedScore score; };
+ struct EGameVersionMismatch { };
+ struct EProtocolVersionMismatch { };
// clang-format on
using Event = std::variant< //