Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/game/StarHumanoid.cpp2
-rw-r--r--source/game/StarHumanoid.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarHumanoid.cpp b/source/game/StarHumanoid.cpp
index 8f39abe..97b90cd 100644
--- a/source/game/StarHumanoid.cpp
+++ b/source/game/StarHumanoid.cpp
@@ -243,7 +243,7 @@ EnumMap<Humanoid::State> const Humanoid::StateNames{
};
// gross, but I don't want to make config calls more than I need to
-bool& Humanoid::globalHeadRotation(Maybe<bool> default) {
+bool& Humanoid::globalHeadRotation() {
static Maybe<bool> s_headRotation;
if (!s_headRotation)
s_headRotation = Root::singleton().configuration()->get("humanoidHeadRotation").optBool().value(true);
diff --git a/source/game/StarHumanoid.hpp b/source/game/StarHumanoid.hpp
index 6fd1cbe..98412f2 100644
--- a/source/game/StarHumanoid.hpp
+++ b/source/game/StarHumanoid.hpp
@@ -100,7 +100,7 @@ public:
};
static EnumMap<State> const StateNames;
- static bool& globalHeadRotation(Maybe<bool> default = {});
+ static bool& globalHeadRotation();
Humanoid(Json const& config);
Humanoid(HumanoidIdentity const& identity);