From 6a747d4e88464cf86f98889e166b3a2f87679487 Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 1 Oct 2011 13:29:12 +0000 Subject: [PATCH] move crc16() git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11380 d7cf8633-e32d-0410-b094-e92efae38249 --- dpdefs/dpextensions.qc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dpdefs/dpextensions.qc b/dpdefs/dpextensions.qc index a5addb3e..d8f6ebd7 100644 --- a/dpdefs/dpextensions.qc +++ b/dpdefs/dpextensions.qc @@ -621,6 +621,13 @@ void(entity from, entity to) copyentity = #400; //description: //copies all data in the entity to another entity. +//DP_QC_CRC16 +//idea: divVerent +//darkplaces implementation: divVerent +//Some hash function to build hash tables with. This has to be be the CRC-16-CCITT that is also required for the QuakeWorld download protocol. +//When caseinsensitive is set, the CRC is calculated of the lower cased string. +float(float caseinsensitive, string s, ...) crc16 = #494; + //DP_QC_CVAR_DEFSTRING //idea: id Software (Doom3), LordHavoc //darkplaces implementation: LordHavoc @@ -2426,13 +2433,6 @@ string(string search, string replace, string subject) strireplace = #485; //description: //strreplace replaces all occurrences of 'search' with 'replace' in the string 'subject', and returns the result as a tempstring. //strireplace does the same but uses case-insensitive matching of the 'search' term -// -//DP_QC_CRC16 -//idea: divVerent -//darkplaces implementation: divVerent -//Some hash function to build hash tables with. This has to be be the CRC-16-CCITT that is also required for the QuakeWorld download protocol. -//When caseinsensitive is set, the CRC is calculated of the lower cased string. -float(float caseinsensitive, string s, ...) crc16 = #494; //DP_SV_SHUTDOWN //idea: divVerent -- 2.39.2