Skip to content

Commit 430f8a1

Browse files
authored
Merge pull request #517 from MrS-ibra/feat/observer-free-camera-zoom
feat: Allow observers to zoom out beyond maxCameraHeight
2 parents 714d9b8 + b137ba0 commit 430f8a1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • Core/GameEngineDevice/Source/W3DDevice/GameClient

Core/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,6 +2278,13 @@ void W3DView::setDefaultView(Real pitch, Real angle, Real maxHeight)
22782278
//-------------------------------------------------------------------------------------------------
22792279
void W3DView::setHeightAboveGround(Real z)
22802280
{
2281+
#if defined(GENERALS_ONLINE)
2282+
if (ThePlayerList && ThePlayerList->getLocalPlayer() && ThePlayerList->getLocalPlayer()->isPlayerObserver())
2283+
{
2284+
m_maxHeightAboveGround = (float)GENERALS_ONLINE_MAX_LOBBY_CAMERA_ZOOM;
2285+
}
2286+
#endif
2287+
22812288
View::setHeightAboveGround(z);
22822289

22832290
stopDoingScriptedCamera();

0 commit comments

Comments
 (0)