Skip to content

Commit 5a8dc95

Browse files
committed
Improve code comments
1 parent decd66c commit 5a8dc95

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Generals/Code/GameEngine/Include/GameClient/LookAtXlat.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@
3333
#include "GameClient/InGameUI.h"
3434

3535
//-----------------------------------------------------------------------------
36+
// TheSuperHackers @feature The Screen Edge Scrolling can now be enabled or
37+
// disabled depending on the App being Windowed or Fullscreen.
3638
typedef UnsignedInt ScreenEdgeScrollMode;
3739
enum ScreenEdgeScrollMode_ CPP_11(: ScreenEdgeScrollMode)
3840
{
3941
ScreenEdgeScrollMode_EnabledInWindowedApp = 1<<0, // Scroll when touching the edge while the app is windowed
4042
ScreenEdgeScrollMode_EnabledInFullscreenApp = 1<<1, // Scroll when touching the edge while the app is fullscreen
4143

42-
ScreenEdgeScrollMode_Default = ScreenEdgeScrollMode_EnabledInFullscreenApp,
44+
ScreenEdgeScrollMode_Default = ScreenEdgeScrollMode_EnabledInFullscreenApp, // Default based on original game behavior
4345
};
4446

4547
//-----------------------------------------------------------------------------

Generals/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ GameMessageDisposition LookAtTranslator::translateGameMessage(const GameMessage
337337
break;
338338
}
339339

340-
// TheSuperHackers @tweak Ayumi/xezon 26/07/2025 Enables edge scrolling in windowed mode.
341340
if (canScrollAtScreenEdge())
342341
{
343342
if (m_isScrolling)

GeneralsMD/Code/GameEngine/Include/GameClient/LookAtXlat.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@
3333
#include "GameClient/InGameUI.h"
3434

3535
//-----------------------------------------------------------------------------
36+
// TheSuperHackers @feature The Screen Edge Scrolling can now be enabled or
37+
// disabled depending on the App being Windowed or Fullscreen.
3638
typedef UnsignedInt ScreenEdgeScrollMode;
3739
enum ScreenEdgeScrollMode_ CPP_11(: ScreenEdgeScrollMode)
3840
{
3941
ScreenEdgeScrollMode_EnabledInWindowedApp = 1<<0, // Scroll when touching the edge while the app is windowed
4042
ScreenEdgeScrollMode_EnabledInFullscreenApp = 1<<1, // Scroll when touching the edge while the app is fullscreen
4143

42-
ScreenEdgeScrollMode_Default = ScreenEdgeScrollMode_EnabledInFullscreenApp,
44+
ScreenEdgeScrollMode_Default = ScreenEdgeScrollMode_EnabledInFullscreenApp, // Default based on original game behavior
4345
};
4446

4547
//-----------------------------------------------------------------------------

GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ GameMessageDisposition LookAtTranslator::translateGameMessage(const GameMessage
336336
break;
337337
}
338338

339-
// TheSuperHackers @tweak Ayumi/xezon 26/07/2025 Enables edge scrolling in windowed mode.
340339
if (canScrollAtScreenEdge())
341340
{
342341
if (m_isScrolling)

0 commit comments

Comments
 (0)