]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
***map loader generates portals for the map*** (can you tell this is a big deal? :)
[xonotic/darkplaces.git] / sys_win.c
index 8452c9ae2f92acdde19a63645dfa965c8e81554c..a7f21401318f46288313024988d98f267096b0b6 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -212,6 +212,7 @@ SYSTEM IO
 ===============================================================================
 */
 
+#if NOTUSED
 /*
 ================
 Sys_MakeCodeWriteable
@@ -224,6 +225,7 @@ void Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
        if (!VirtualProtect((LPVOID)startaddr, length, PAGE_READWRITE, &flOldProtect))
                Sys_Error("Protection change failed\n");
 }
+#endif
 
 
 /*
@@ -643,8 +645,9 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
        if (cwd[strlen(cwd)-1] == '/')
                cwd[strlen(cwd)-1] = 0;
 
+       memset(&host_parms, 0, sizeof(host_parms));
+
        host_parms.basedir = cwd;
-       host_parms.cachedir = NULL;
 
        host_parms.argc = 1;
        argv[0] = empty_string;