Skip to content

Commit bf020ba

Browse files
authored
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
1 parent a713216 commit bf020ba

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dGame/dComponents/GhostComponent.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ void GhostComponent::GhostEntity(LWOOBJID id) {
8989
}
9090

9191
bool GhostComponent::OnToggleGMInvis(GameMessages::GameMsg& msg) {
92+
// TODO: disabled for now while bugs are fixed
93+
return false;
9294
auto& gmInvisMsg = static_cast<GameMessages::ToggleGMInvis&>(msg);
9395
gmInvisMsg.bStateOut = !m_IsGMInvisible;
9496
m_IsGMInvisible = !m_IsGMInvisible;
@@ -118,8 +120,11 @@ bool GhostComponent::OnToggleGMInvis(GameMessages::GameMsg& msg) {
118120
bool GhostComponent::OnGetGMInvis(GameMessages::GameMsg& msg) {
119121
LOG_DEBUG("GM Invisibility requested: %s", m_IsGMInvisible ? "true" : "false");
120122
auto& gmInvisMsg = static_cast<GameMessages::GetGMInvis&>(msg);
121-
gmInvisMsg.bGMInvis = m_IsGMInvisible;
122-
return gmInvisMsg.bGMInvis;
123+
// TODO: disabled for now while bugs are fixed
124+
// gmInvisMsg.bGMInvis = m_IsGMInvisible;
125+
// return gmInvisMsg.bGMInvis;
126+
gmInvisMsg.bGMInvis = false;
127+
return false;
123128
}
124129

125130
bool GhostComponent::MsgGetObjectReportInfo(GameMessages::GameMsg& msg) {

0 commit comments

Comments
 (0)