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

summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorlonaasan <shadowlona@shadowlona.dev>2024-09-09 11:35:40 +0200
committerlonaasan <shadowlona@shadowlona.dev>2024-09-09 11:35:40 +0200
commit227585f1dc027dec43152a409dbadb26b19e2c3d (patch)
tree160f8fa10adad1b4fb34e63d960784a823e04d82 /source
parent732fc2a9d7e9a4c5e3cf01ac191a392462f3da8c (diff)
[bugfix] removed check in setRespawnWorld due to the nature of NULL
Diffstat (limited to 'source')
-rw-r--r--source/game/StarWorldClient.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/game/StarWorldClient.cpp b/source/game/StarWorldClient.cpp
index 0d3e039..3e85c79 100644
--- a/source/game/StarWorldClient.cpp
+++ b/source/game/StarWorldClient.cpp
@@ -142,12 +142,9 @@ bool WorldClient::respawnInWorld() const {
return m_respawnInWorld;
}
-bool WorldClient::setRespawnInWorld(bool value = NULL) {
+bool WorldClient::setRespawnInWorld(bool value) {
- if (value != NULL)
- m_respawnInWorld = value;
- else
- m_respawnInWorld ^= true; // dont know if we still want to set the respawn if no argument is given here
+ m_respawnInWorld = value;
return m_respawnInWorld;
}