1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-28 10:24:20 +01:00

Fix a few unrelated compile warnings.

This commit is contained in:
Nicholas Hastings 2016-07-22 14:04:02 -04:00
parent 18bdaf4732
commit 878f7531fb
2 changed files with 4 additions and 4 deletions

View File

@ -189,7 +189,7 @@ void BaseProvider::Notify_DLLInit_Pre(CreateInterfaceFn engineFactory,
char searchPath[260];
baseFs->GetSearchPath("GAME", (GetSearchPathTypes_t)0, searchPath, sizeof(searchPath));
for (int i = 0; i < sizeof(searchPath); ++i)
for (size_t i = 0; i < sizeof(searchPath); ++i)
{
if (searchPath[i] == ';')
{
@ -206,7 +206,7 @@ void BaseProvider::Notify_DLLInit_Pre(CreateInterfaceFn engineFactory,
baseFs->RemoveSearchPaths("DEFAULT_WRITE_PATH");
baseFs->GetSearchPath("GAME", (GetSearchPathTypes_t)0, searchPath, sizeof(searchPath));
for (int i = 0; i < sizeof(searchPath); ++i)
for (size_t i = 0; i < sizeof(searchPath); ++i)
{
if (searchPath[i] == ';')
{

View File

@ -165,8 +165,8 @@ mm_DetectGameInformation()
lptr = cur_path;
}
char *pRelPath = is_source2 ? "../../" : "";
char *pOSDir = is_source2 ? PLATFORM_NAME "/" : "";
const char *pRelPath = is_source2 ? "../../" : "";
const char *pOSDir = is_source2 ? PLATFORM_NAME "/" : "";
if (stricmp(key, "GameBin") == 0)
mm_PathFormat(temp_path, sizeof(temp_path), "%s/%s%s/%s" SERVER_NAME, lptr, pRelPath, ptr, pOSDir);
else if (!ptr[0])