Skip to content

Commit b3534c3

Browse files
committed
minor tweaks to camera, show fps etc
1 parent cc9c95a commit b3534c3

3 files changed

Lines changed: 23 additions & 2 deletions

File tree

GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/NextGenMP_defines.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
#define GENERALS_ONLINE
4+
35
//#define GENERALS_ONLINE_GAMETYPE_GENERALS
46
#define GENERALS_ONLINE_GAMETYPE_ZEROHOUR
57

@@ -33,4 +35,4 @@
3335
// annoying game assertions, we'll catch real things in the debugger
3436
#define DISABLE_DEBUG_CRASHING 1
3537

36-
#define GENERALS_ONLINE_TEST_MAP_TRANSFER 1
38+
//#define GENERALS_ONLINE_TEST_MAP_TRANSFER 1

GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/NGMPGame.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ AsciiString NGMPGame::generateLadderGameResultsPacket(void)
341341

342342
void NGMPGame::launchGame(void)
343343
{
344+
// TODO_NGMP: Better way of doing this, plus maybe load from file?
345+
TheWritableGlobalData->m_benchmarkTimer = 999999999;
346+
//TheWritableGlobalData->m_debugShowGraphicalFramerate = true;
347+
TheWritableGlobalData->m_showMetrics = true;
348+
344349
setGameInProgress(TRUE);
345350

346351
for (Int i = 0; i < MAX_SLOTS; ++i)

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393

9494
#include "W3DDevice/GameClient/camerashakesystem.h"
9595

96+
#include "GameNetwork/GeneralsOnline/NextGenMP_defines.h"
97+
98+
9699
#include "WinMain.h" /** @todo Remove this, it's only here because we
97100
are using timeGetTime, but we can remove that
98101
when we have our own timer */
@@ -1916,9 +1919,20 @@ void W3DView::setDefaultView(Real pitch, Real angle, Real maxHeight)
19161919
// MDC - we no longer want to rotate maps (design made all of them right to begin with)
19171920
// m_defaultAngle = angle * M_PI/180.0f;
19181921
m_defaultPitchAngle = pitch;
1919-
m_maxHeightAboveGround = TheGlobalData->m_maxCameraHeight*maxHeight;
1922+
1923+
// TODO_NGMP: Better way of doing this
1924+
#if defined(GENERALS_ONLINE)
1925+
TheWritableGlobalData->m_minCameraHeight = 100.f;
1926+
TheWritableGlobalData->m_maxCameraHeight = 800.f;
1927+
m_minHeightAboveGround = 100.f;
1928+
m_maxHeightAboveGround = 600.f;
1929+
1930+
#endif
1931+
1932+
m_maxHeightAboveGround = TheGlobalData->m_maxCameraHeight * maxHeight;
19201933
if (m_minHeightAboveGround > m_maxHeightAboveGround)
19211934
m_maxHeightAboveGround = m_minHeightAboveGround;
1935+
19221936
}
19231937

19241938
//-------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)