From: havoc Date: Sat, 16 Sep 2006 08:40:15 +0000 (+0000) Subject: changed VM_fopen and VM_fclose announcements to require developer >= 100 like the... X-Git-Tag: xonotic-v0.1.0preview~3802 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=77ba9fc4206aac7aadf4380e50917a90e73e0119;p=xonotic%2Fdarkplaces.git changed VM_fopen and VM_fclose announcements to require developer >= 100 like the VM_fputs/VM_fgets functions do, and made them console prints instead of VM_Warning calls (not sure why they were to begin with) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6587 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_cmds.c b/prvm_cmds.c index 96a101e5..1f4baee3 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -1577,14 +1577,14 @@ void VM_fopen(void) if (prog->openfiles[filenum] == NULL) { PRVM_G_FLOAT(OFS_RETURN) = -1; - if (developer.integer >= 10) + if (developer.integer >= 100) VM_Warning("VM_fopen: %s: %s mode %s failed\n", PRVM_NAME, filename, modestring); } else { PRVM_G_FLOAT(OFS_RETURN) = filenum; - if (developer.integer >= 10) - VM_Warning("VM_fopen: %s: %s mode %s opened as #%i\n", PRVM_NAME, filename, modestring, filenum); + if (developer.integer >= 100) + Con_Printf("VM_fopen: %s: %s mode %s opened as #%i\n", PRVM_NAME, filename, modestring, filenum); } } @@ -1615,8 +1615,8 @@ void VM_fclose(void) } FS_Close(prog->openfiles[filenum]); prog->openfiles[filenum] = NULL; - if (developer.integer >= 10) - VM_Warning("VM_fclose: %s: #%i closed\n", PRVM_NAME, filenum); + if (developer.integer >= 100) + Con_Printf("VM_fclose: %s: #%i closed\n", PRVM_NAME, filenum); } /*