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): hide the placement arrow while shift lays a row

Olcay Seygan458b5138f448
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
index 1301ad89c..a3b481370 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
@@ -1465,8 +1465,9 @@ void W3DInGameUI::drawPlaceAngle( View *view )
Bool anchorInScene = m_buildingPlacementAnchor->Peek_Scene() != NULL;
Bool arrowInScene = m_buildingPlacementArrow->Peek_Scene() != NULL;
- // get out of here if this display isn't up anyway
- if( isPlacementAnchored() == FALSE )
+ // get out of here if this display isn't up anyway, and with shift held it is not: that drag
+ // lays a row and turns nothing, so an anchor and an arrow would promise a turn it will not make
+ if( isPlacementAnchored() == FALSE || placesRow() )
{
if( anchorInScene )
{