Skip to content

Commit 90e819f

Browse files
committed
fix(view): Allow the camera to move closer to the edge of the map
1 parent e8db965 commit 90e819f

File tree

1 file changed

+2
-1
lines changed
  • GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient

1 file changed

+2
-1
lines changed

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ void W3DView::calcCameraConstraints()
502502
center.x -= bottom.x;
503503
center.y -= bottom.y;
504504

505-
Real offset = center.length();
505+
// TheSuperHackers @bugfix Mauller 22/10/2025 Halve the camera offset to allow the camera to move closer to the map edges
506+
Real offset = center.length() * 0.5f;
506507

507508
if (TheGlobalData->m_debugAI) {
508509
offset = -1000; // push out the constraints so we can look at staging areas.

0 commit comments

Comments
 (0)