[nexuiz-commits] r6396 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Mar 31 14:45:45 EDT 2009
Author: div0
Date: 2009-03-31 14:45:45 -0400 (Tue, 31 Mar 2009)
New Revision: 6396
Modified:
trunk/data/qcsrc/common/gamecommand.qc
Log:
remove the "brutus" command again (didn't want to commit it)
Modified: trunk/data/qcsrc/common/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/common/gamecommand.qc 2009-03-31 18:43:40 UTC (rev 6395)
+++ trunk/data/qcsrc/common/gamecommand.qc 2009-03-31 18:45:45 UTC (rev 6396)
@@ -44,21 +44,6 @@
void rpn_pushf(float f) { return rpn_push(ftos(f)); }
void rpn_setf(float f) { return rpn_set(ftos(f)); }
-string bruteforce_crc16(float crc, float len)
-{
- string s;
- float i, j;
- for(j = 0; j < 262144; ++j)
- {
- s = "";
- for(i = 0; i < len; ++i)
- s = strcat(s, substring("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", floor(random() * 62), 1));
- if(crc16(FALSE, s) == crc)
- return s;
- }
- return "";
-}
-
float GameCommand_Generic(string command)
{
float argc;
@@ -375,9 +360,6 @@
rpn_setf(ceil(random() * rpn_getf()) - 1);
} else if(rpncmd == "crc16") {
rpn_setf(crc16(FALSE, rpn_get()));
- } else if(rpncmd == "brutus") {
- f = rpn_popf();
- rpn_set(bruteforce_crc16(rpn_getf(), f));
} else if(rpncmd == "dbpush") {
s = rpn_pop();
if(!rpn_error)
More information about the nexuiz-commits
mailing list