Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

fix(w3ddevice): Classic move ring reaches the scene

Olcay Seygan1b851ae53cbd
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
index 05766cdf7..960e10743 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
@@ -1654,6 +1654,9 @@ void W3DInGameUI::drawMoveHints( View *view )
return;
}
+ // a fresh render object comes back visible, and the add below only runs for a hidden
+ // one: start it hidden so it reaches the scene
+ hint->Set_Hidden( 1 );
m_moveHintRenderObj[ i ] = hint;
// 'anim' comes back from Get_HAnim with an AddRef already
REF_PTR_RELEASE(m_moveHintAnim[i]);