]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.c
-Fixed a bad bugfix in the menu router.
[xonotic/darkplaces.git] / prvm_cmds.c
index 2271956339e39ab0b72fbdd46bb5811ba301eaf5..6a7fc7d4721e1e0ce9aed945c029690195a6ee89 100644 (file)
@@ -1746,6 +1746,9 @@ void VM_fopen(void)
                return;
        }
        VM_FILES[filenum] = FS_Open(va("data/%s", filename), modestring, false);
+       if (VM_FILES[filenum] == NULL && mode == 0)
+               VM_FILES[filenum] = FS_Open(va("%s", filename), modestring, false);
+
        if (VM_FILES[filenum] == NULL)
                PRVM_G_FLOAT(OFS_RETURN) = -1;
        else