File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
GeneralsMD/Code/GameEngine/Source/GameClient
Generals/Code/GameEngine/Source/GameClient Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1415,10 +1415,10 @@ void InGameUI::handleBuildPlacements( void )
14151415 v.y = worldEnd.y - worldStart.y ;
14161416 angle = v.toAngle ();
14171417
1418- // Use force attack mode to control snapping for convenience
1418+ // TheSuperHackers @tweak Stubbjax 04/08/2025 Snap angle to nearest 45 degrees
1419+ // while using force attack mode for convenience.
14191420 if (isInForceAttackMode ())
14201421 {
1421- // TheSuperHackers @tweak Stubbjax 04/08/2025 Snap angle to nearest 45 degrees (pi/4 radians)
14221422 const Real snapRadians = PI / 4 .0f ;
14231423 angle = floor ((angle / snapRadians) + 0 .5f ) * snapRadians;
14241424 }
Original file line number Diff line number Diff line change @@ -1470,10 +1470,10 @@ void InGameUI::handleBuildPlacements( void )
14701470 v.y = worldEnd.y - worldStart.y ;
14711471 angle = v.toAngle ();
14721472
1473- // Use force attack mode to control snapping for convenience
1473+ // TheSuperHackers @tweak Stubbjax 04/08/2025 Snap angle to nearest 45 degrees
1474+ // while using force attack mode for convenience.
14741475 if (isInForceAttackMode ())
14751476 {
1476- // TheSuperHackers @tweak Stubbjax 04/08/2025 Snap angle to nearest 45 degrees (pi/4 radians)
14771477 const Real snapRadians = PI / 4 .0f ;
14781478 angle = floor ((angle / snapRadians) + 0 .5f ) * snapRadians;
14791479 }
You can’t perform that action at this time.
0 commit comments