Skip to content

Commit e1dece7

Browse files
committed
docs: Streamline comments
1 parent e5e1762 commit e1dece7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)