r4225 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Aug 28 14:27:10 EDT 2008
Author: esteel
Date: 2008-08-28 14:27:09 -0400 (Thu, 28 Aug 2008)
New Revision: 4225
Modified:
trunk/data/qcsrc/common/util.qc
Log:
it seems a bit over the top to error out just because we can't open the file in db_save, just dprint and return
Modified: trunk/data/qcsrc/common/util.qc
===================================================================
--- trunk/data/qcsrc/common/util.qc 2008-08-28 13:43:26 UTC (rev 4224)
+++ trunk/data/qcsrc/common/util.qc 2008-08-28 18:27:09 UTC (rev 4225)
@@ -277,8 +277,11 @@
{
float fh, i, n;
fh = fopen(pFilename, FILE_WRITE);
- if(fh < 0)
- error(strcat("Can't write DB to ", pFilename));
+ if(fh < 0)
+ {
+ dprint(strcat("Can't write DB to ", pFilename));
+ return;
+ }
n = buf_getsize(db);
fputs(fh, strcat(ftos(DB_BUCKETS), "\n"));
for(i = 0; i < n; ++i)
More information about the nexuiz-commits
mailing list