File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient
Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1174,9 +1174,10 @@ void W3DView::update(void)
1174
1174
* underground or higher than the max allowed height. When the camera is at rest (not
1175
1175
* scrolling), the zoom will move toward matching the desired height.
1176
1176
*/
1177
+ // TheSuperHackers @tweak Can now also zoom when the game is paused.
1177
1178
m_terrainHeightUnderCamera = getHeightAroundPos (m_pos.x , m_pos.y );
1178
1179
m_currentHeightAboveGround = m_cameraOffset.z * m_zoom - m_terrainHeightUnderCamera;
1179
- if (TheTerrainLogic && TheGlobalData && TheInGameUI && m_okToAdjustHeight && !TheGameLogic-> isGamePaused () )
1180
+ if (TheTerrainLogic && TheGlobalData && TheInGameUI && m_okToAdjustHeight)
1180
1181
{
1181
1182
Real desiredHeight = (m_terrainHeightUnderCamera + m_heightAboveGround);
1182
1183
Real desiredZoom = desiredHeight / m_cameraOffset.z ;
Original file line number Diff line number Diff line change @@ -1326,9 +1326,10 @@ void W3DView::update(void)
1326
1326
* underground or higher than the max allowed height. When the camera is at rest (not
1327
1327
* scrolling), the zoom will move toward matching the desired height.
1328
1328
*/
1329
+ // TheSuperHackers @tweak Can now also zoom when the game is paused.
1329
1330
m_terrainHeightUnderCamera = getHeightAroundPos (m_pos.x , m_pos.y );
1330
1331
m_currentHeightAboveGround = m_cameraOffset.z * m_zoom - m_terrainHeightUnderCamera;
1331
- if (TheTerrainLogic && TheGlobalData && TheInGameUI && m_okToAdjustHeight && !TheGameLogic-> isGamePaused () )
1332
+ if (TheTerrainLogic && TheGlobalData && TheInGameUI && m_okToAdjustHeight)
1332
1333
{
1333
1334
Real desiredHeight = (m_terrainHeightUnderCamera + m_heightAboveGround);
1334
1335
Real desiredZoom = desiredHeight / m_cameraOffset.z ;
You can’t perform that action at this time.
0 commit comments