mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-14 03:58:26 +00:00
fix: temp fixes for ghosting so I can continue being on break (#1947)
* fix: temp fixes for ghosting so I can continue being on break disables the ghost feature for now so i can continue my break * Update GhostComponent.cpp
This commit is contained in:
@@ -89,6 +89,8 @@ void GhostComponent::GhostEntity(LWOOBJID id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool GhostComponent::OnToggleGMInvis(GameMessages::GameMsg& msg) {
|
bool GhostComponent::OnToggleGMInvis(GameMessages::GameMsg& msg) {
|
||||||
|
// TODO: disabled for now while bugs are fixed
|
||||||
|
return false;
|
||||||
auto& gmInvisMsg = static_cast<GameMessages::ToggleGMInvis&>(msg);
|
auto& gmInvisMsg = static_cast<GameMessages::ToggleGMInvis&>(msg);
|
||||||
gmInvisMsg.bStateOut = !m_IsGMInvisible;
|
gmInvisMsg.bStateOut = !m_IsGMInvisible;
|
||||||
m_IsGMInvisible = !m_IsGMInvisible;
|
m_IsGMInvisible = !m_IsGMInvisible;
|
||||||
@@ -118,8 +120,11 @@ bool GhostComponent::OnToggleGMInvis(GameMessages::GameMsg& msg) {
|
|||||||
bool GhostComponent::OnGetGMInvis(GameMessages::GameMsg& msg) {
|
bool GhostComponent::OnGetGMInvis(GameMessages::GameMsg& msg) {
|
||||||
LOG_DEBUG("GM Invisibility requested: %s", m_IsGMInvisible ? "true" : "false");
|
LOG_DEBUG("GM Invisibility requested: %s", m_IsGMInvisible ? "true" : "false");
|
||||||
auto& gmInvisMsg = static_cast<GameMessages::GetGMInvis&>(msg);
|
auto& gmInvisMsg = static_cast<GameMessages::GetGMInvis&>(msg);
|
||||||
gmInvisMsg.bGMInvis = m_IsGMInvisible;
|
// TODO: disabled for now while bugs are fixed
|
||||||
return gmInvisMsg.bGMInvis;
|
// gmInvisMsg.bGMInvis = m_IsGMInvisible;
|
||||||
|
// return gmInvisMsg.bGMInvis;
|
||||||
|
gmInvisMsg.bGMInvis = false;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GhostComponent::MsgGetObjectReportInfo(GameMessages::GameMsg& msg) {
|
bool GhostComponent::MsgGetObjectReportInfo(GameMessages::GameMsg& msg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user