r5327 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Dec 27 09:37:19 EST 2008
Author: div0
Date: 2008-12-27 09:37:18 -0500 (Sat, 27 Dec 2008)
New Revision: 5327
Modified:
trunk/data/qcsrc/server/cl_player.qc
Log:
go back to using the sane tokenizer whereever possible
Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc 2008-12-27 14:36:14 UTC (rev 5326)
+++ trunk/data/qcsrc/server/cl_player.qc 2008-12-27 14:37:18 UTC (rev 5327)
@@ -74,7 +74,7 @@
if (animfile < 0)
return '0 1 2';
line = fgets(animfile);
- c = tokenize_insane(line); // save cycles
+ c = tokenize_sane(line);
if (c != 3)
{
animparseerror = TRUE;
@@ -806,7 +806,7 @@
void PrecacheGlobalSound(string samplestring)
{
float n, i;
- tokenize_insane(samplestring); // save cycles
+ tokenize_sane(samplestring);
n = stof(argv(1));
if(n > 0)
{
@@ -828,7 +828,7 @@
return;
while((s = fgets(fh)))
{
- if(tokenize_insane(s) != 3) // save cycles
+ if(tokenize_sane(s) != 3)
{
dprint("Invalid sound info line: ", s, "\n");
continue;
@@ -864,7 +864,7 @@
return;
while((s = fgets(fh)))
{
- if(tokenize_insane(s) != 3) // save cycles
+ if(tokenize_sane(s) != 3)
continue;
field = GetPlayerSoundSampleField(argv(0));
if(GetPlayerSoundSampleField_notFound)
@@ -899,7 +899,7 @@
if(sample == "")
return;
- tokenize_insane(sample); // save cycles
+ tokenize_sane(sample);
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