diff options
author | tjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-03-28 03:26:59 +0000 |
---|---|---|
committer | tjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-03-28 03:26:59 +0000 |
commit | f44ed19af12bd78f8adb9a1aae408997d365d6e0 (patch) | |
tree | 24ea123f849154027c1ce8b1456519eafe0c84db /code | |
parent | f1d656fc10833dd3495165d991538a5bde5cce41 (diff) | |
download | ioquake3-aero-f44ed19af12bd78f8adb9a1aae408997d365d6e0.tar.gz ioquake3-aero-f44ed19af12bd78f8adb9a1aae408997d365d6e0.zip |
* 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.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1287 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/botlib/l_script.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/code/botlib/l_script.c b/code/botlib/l_script.c index 3e43fda..c92481c 100644 --- a/code/botlib/l_script.c +++ b/code/botlib/l_script.c @@ -1363,8 +1363,6 @@ script_t *LoadScriptFile(const char *filename) } //end if fclose(fp); #endif - // - script->length = COM_Compress(script->buffer); return script; } //end of the function LoadScriptFile |