There was an error while loading. Please reload this page.
2 parents 8756845 + ec69fae commit 18c0308Copy full SHA for 18c0308
1 file changed
Core/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
@@ -2284,7 +2284,8 @@ void W3DView::setHeightAboveGround(Real z)
2284
#if defined(GENERALS_ONLINE)
2285
if (ThePlayerList && ThePlayerList->getLocalPlayer() && ThePlayerList->getLocalPlayer()->isPlayerObserver())
2286
{
2287
- m_maxHeightAboveGround = (float)GENERALS_ONLINE_MAX_LOBBY_CAMERA_ZOOM;
+ const Real cameraHeightForReset = 500.0f;
2288
+ m_maxHeightAboveGround = z > cameraHeightForReset ? (float)GENERALS_ONLINE_MAX_LOBBY_CAMERA_ZOOM : cameraHeightForReset;
2289
}
2290
#endif
2291
0 commit comments