r3186 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Jan 19 05:31:43 EST 2008
Author: div0
Date: 2008-01-19 05:31:40 -0500 (Sat, 19 Jan 2008)
New Revision: 3186
Modified:
trunk/data/qcsrc/common/util.qc
Log:
minor change in reorganizing code. You now can merge two databases like this:
{
echo 0;
cat db1 db2
} > dbmerged
The number-of-buckets lines will get ignored, and the database rehashed, and the items of db2 will have priority.
Modified: trunk/data/qcsrc/common/util.qc
===================================================================
--- trunk/data/qcsrc/common/util.qc 2008-01-19 10:21:28 UTC (rev 3185)
+++ trunk/data/qcsrc/common/util.qc 2008-01-19 10:31:40 UTC (rev 3186)
@@ -276,8 +276,8 @@
while((l = fgets(fh)))
{
n = tokenizebyseparator(l, "\\");
- for(j = 1; j < n; j += 2)
- db_put(db, argv(j), argv(j+1));
+ for(j = 2; j < n; j += 2)
+ db_put(db, argv(j-1), argv(j));
}
}
fclose(fh);
More information about the nexuiz-commits
mailing list