From 9f7467d3adb711537d9045a2fc2d9df5413b417f Mon Sep 17 00:00:00 2001 From: Steven Chamberlain Date: Wed, 13 Apr 2016 02:24:55 +0100 Subject: [PATCH 1/2] Fix another 1L literal --- Sources/DedicatedServer/DedicatedServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/DedicatedServer/DedicatedServer.cpp b/Sources/DedicatedServer/DedicatedServer.cpp index c01b8d1..c73cda5 100644 --- a/Sources/DedicatedServer/DedicatedServer.cpp +++ b/Sources/DedicatedServer/DedicatedServer.cpp @@ -101,7 +101,7 @@ void LimitFrameRate(void) TIME tmCurrentDelta = (tvNow-tvLast).GetSeconds(); // limit maximum frame rate - ded_iMaxFPS = ClampDn( ded_iMaxFPS, 1L); + ded_iMaxFPS = ClampDn( ded_iMaxFPS, 1); TIME tmWantedDelta = 1.0f / ded_iMaxFPS; if( tmCurrentDeltaSleep( (DWORD) ((tmWantedDelta-tmCurrentDelta)*1000.0f) ); From 95b4404cbc7e66b4f9e5ee53c4f3222ee20a27b4 Mon Sep 17 00:00:00 2001 From: Steven Chamberlain Date: Wed, 13 Apr 2016 02:25:58 +0100 Subject: [PATCH 2/2] DedicatedServer: declare a dummy _hwndMain --- Sources/DedicatedServer/DedicatedServer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/DedicatedServer/DedicatedServer.cpp b/Sources/DedicatedServer/DedicatedServer.cpp index c73cda5..12271f5 100644 --- a/Sources/DedicatedServer/DedicatedServer.cpp +++ b/Sources/DedicatedServer/DedicatedServer.cpp @@ -39,6 +39,10 @@ CTString sam_strGameName = "serioussam"; CTimerValue _tvLastLevelEnd((__int64) -1); +// Not used; dummy declaration only needed by +// Engine/Base/ErrorReporting.o +HWND _hwndMain = NULL; + void InitializeGame(void) { #ifdef STATICALLY_LINKED