mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-20 14:28:07 +00:00
Update in response to feedback
This commit is contained in:
@@ -176,7 +176,7 @@ namespace GeneralUtils {
|
||||
template <std::floating_point T>
|
||||
[[nodiscard]] std::optional<T> TryParse(const char* const str, const char* const strEnd = NULL) noexcept
|
||||
try {
|
||||
return std::make_optional<T>(std::stold(str));
|
||||
return std::stold(str);
|
||||
} catch (...) {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
@@ -27,6 +27,13 @@ constexpr uint32_t highFrameDelta = FRAMES_TO_MS(highFramerate);
|
||||
constexpr uint32_t mediumFrameDelta = FRAMES_TO_MS(mediumFramerate);
|
||||
constexpr uint32_t lowFrameDelta = FRAMES_TO_MS(lowFramerate);
|
||||
|
||||
//========== CLIENT VERSION DEFAULTS ===========
|
||||
namespace ClientVersion {
|
||||
constexpr uint16_t major = 1;
|
||||
constexpr uint16_t current = 10;
|
||||
constexpr uint16_t minor = 64;
|
||||
}
|
||||
|
||||
//========== MACROS ===========
|
||||
|
||||
#define HEADER_SIZE 8
|
||||
|
Reference in New Issue
Block a user