From f44ed19af12bd78f8adb9a1aae408997d365d6e0 Mon Sep 17 00:00:00 2001 From: tjw Date: Fri, 28 Mar 2008 03:26:59 +0000 Subject: * 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 --- code/botlib/l_script.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'code/botlib') 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 -- cgit v1.2.3