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:
parent
18bdaf4732
commit
878f7531fb
@ -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] == ';')
|
||||
{
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user