r1287 - trunk/code/botlib
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Mar 27 23:26:59 EDT 2008
Author: tjw
Date: 2008-03-27 23:26:59 -0400 (Thu, 27 Mar 2008)
New Revision: 1287
Modified:
trunk/code/botlib/l_script.c
Log:
* remove COM_Compress() call on script buffer loaded into memory. I assume
this was added in order to save cycles if a script is loaded and then
parsed multiple times, but it caused line numbers to be reported
incorrectly for parse errors. If a script is loaded into memory and
parsed multiple times then the script itself should be optimized instead
of doing it at runtime. Also, there was a possibility of segfault
due to where this was called.
Modified: trunk/code/botlib/l_script.c
===================================================================
--- trunk/code/botlib/l_script.c 2008-03-27 03:21:32 UTC (rev 1286)
+++ trunk/code/botlib/l_script.c 2008-03-28 03:26:59 UTC (rev 1287)
@@ -1363,8 +1363,6 @@
} //end if
fclose(fp);
#endif
- //
- script->length = COM_Compress(script->buffer);
return script;
} //end of the function LoadScriptFile
More information about the quake3-commits
mailing list