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