Skip to content

Commit 8f1b647

Browse files
committed
fix(view): Allow the camera to move closer to the edge of the map
1 parent ab0b316 commit 8f1b647

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
@@ -503,7 +503,8 @@ void W3DView::calcCameraConstraints()
503503
center.x -= bottom.x;
504504
center.y -= bottom.y;
505505

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

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

0 commit comments

Comments
 (0)