* 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.
This commit is contained in:
Tony J. White = 2008-03-28 03:26:59 +00:00
parent 1d072dfdb5
commit f82ea67c67
1 changed files with 0 additions and 2 deletions

View File

@ -1363,8 +1363,6 @@ script_t *LoadScriptFile(const char *filename)
} //end if } //end if
fclose(fp); fclose(fp);
#endif #endif
//
script->length = COM_Compress(script->buffer);
return script; return script;
} //end of the function LoadScriptFile } //end of the function LoadScriptFile