Fixed some warnings
diff --git a/src/engine/framework/IOAPI.cpp b/src/engine/framework/IOAPI.cpp
index 769eb5e..dc325b8 100644
--- a/src/engine/framework/IOAPI.cpp
+++ b/src/engine/framework/IOAPI.cpp
@@ -10,10 +10,6 @@
*/
-#if (defined(_WIN32))
-#define _CRT_SECURE_NO_WARNINGS
-#endif
-
#ifdef UPDATE_SERVER
#include <null/null_autoprecompiled.h>
#elif DEDICATED
diff --git a/src/engine/platform/Windows/systemWindows.cpp b/src/engine/platform/Windows/systemWindows.cpp
index 414d269..9f8b9a0 100644
--- a/src/engine/platform/Windows/systemWindows.cpp
+++ b/src/engine/platform/Windows/systemWindows.cpp
@@ -101,15 +101,15 @@ idSystemLocal::TempPath
*/
pointer idSystemLocal::TempPath( void )
{
- static TCHAR path[ MAX_PATH ];
- DWORD length;
+ static valueType path[ MAX_PATH ];
+ uint length;
valueType tmp[ MAX_OSPATH ];
length = GetTempPath( sizeof( path ), path );
if( length > sizeof( path ) || length == 0 )
{
- return systemLocal.DefaultHomePath( tmp, sizeof( tmp ) );
+ return systemLocal.DefaultHomePath( path, sizeof( tmp ) );
}
else
{
diff --git a/src/engine/qcommon/q_shared.cpp b/src/engine/qcommon/q_shared.cpp
index 0db4ec4..2ab100c 100644
--- a/src/engine/qcommon/q_shared.cpp
+++ b/src/engine/qcommon/q_shared.cpp
@@ -284,10 +284,10 @@ bool COM_BitCheck( const sint array[], sint bitNum )
sint i;
i = 0;
- while( bitNum > 31 )
+ while( bitNum > 63 )
{
i++;
- bitNum -= 32;
+ bitNum -= 64;
}
return ( bool )( ( array[i] & ( 1 << bitNum ) ) != 0 ); // (SA) heh, whoops. :)
@@ -326,10 +326,10 @@ void COM_BitClear( sint array[], sint bitNum )
sint i;
i = 0;
- while( bitNum > 31 )
+ while( bitNum > 63 )
{
i++;
- bitNum -= 32;
+ bitNum -= 64;
}
array[i] &= ~( 1 << bitNum );
@@ -2359,10 +2359,10 @@ bool Com_ClientListContains( const clientList_t* list, sint clientNum )
{
if( clientNum < 0 || clientNum >= MAX_CLIENTS || !list )
return false;
- if( clientNum < 32 )
+ if( clientNum < 64 )
return ( bool )( ( list->lo & ( 1 << clientNum ) ) != 0 );
else
- return ( bool )( ( list->hi & ( 1 << ( clientNum - 32 ) ) ) != 0 );
+ return ( bool )( ( list->hi & ( 1 << ( clientNum - 64 ) ) ) != 0 );
}
/*
GitHub
sha: e3908dc1