r5325 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Dec 26 16:05:07 EST 2008
Author: div0
Date: 2008-12-26 16:05:07 -0500 (Fri, 26 Dec 2008)
New Revision: 5325
Modified:
trunk/data/qcsrc/server/cl_player.qc
Log:
use the insane but fast tokenizer for more stuff again
Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc 2008-12-26 21:01:22 UTC (rev 5324)
+++ trunk/data/qcsrc/server/cl_player.qc 2008-12-26 21:05:07 UTC (rev 5325)
@@ -74,7 +74,7 @@
if (animfile < 0)
return '0 1 2';
line = fgets(animfile);
- c = tokenize_sane(line);
+ c = tokenize_insane(line); // save cycles
if (c != 3)
{
animparseerror = TRUE;
@@ -806,7 +806,7 @@
void PrecacheGlobalSound(string samplestring)
{
float n, i;
- tokenize_sane(samplestring);
+ tokenize_insane(samplestring); // save cycles
n = stof(argv(1));
if(n > 0)
{
@@ -828,7 +828,7 @@
return;
while((s = fgets(fh)))
{
- if(tokenize_sane(s) != 3)
+ if(tokenize_insane(s) != 3) // save cycles
{
dprint("Invalid sound info line: ", s, "\n");
continue;
@@ -864,7 +864,7 @@
return;
while((s = fgets(fh)))
{
- if(tokenize_sane(s) != 3)
+ if(tokenize_insane(s) != 3) // save cycles
continue;
field = GetPlayerSoundSampleField(argv(0));
if(GetPlayerSoundSampleField_notFound)
@@ -899,7 +899,7 @@
if(sample == "")
return;
- tokenize_sane(sample);
+ tokenize_insane(sample); // save cycles
n = stof(argv(1));
if(n > 0)
sample = strcat(argv(0), ftos(floor(random() * n + 1)), ".wav"); // randomization
More information about the nexuiz-commits
mailing list