mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
start CON code at script[3] instead of script[1]. The 'move' command permits
the constants 0 and 1, and moveptrs may reference the script up to index 2 then (though I'm not sure whether the code is reachable with moveofs either 0 or 1), so make sure it's nulled instead of whatever happened to compile at the first two positions. Move 1 is only used once in the original cons, when frozen and being shattered. git-svn-id: https://svn.eduke32.com/eduke32@2211 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5ef480ad7a
commit
0bf329e70d
1 changed files with 1 additions and 1 deletions
|
@ -5781,7 +5781,7 @@ void C_Compile(const char *filenam)
|
||||||
// initprintf("script: %d, bitptr: %d\n",script,bitptr);
|
// initprintf("script: %d, bitptr: %d\n",script,bitptr);
|
||||||
|
|
||||||
g_numLabels = g_numDefaultLabels = 0;
|
g_numLabels = g_numDefaultLabels = 0;
|
||||||
g_scriptPtr = script+1;
|
g_scriptPtr = script+3; // move permits constants 0 and 1; moveptr[1] would be script[2] (reachable?)
|
||||||
g_numCompilerWarnings = 0;
|
g_numCompilerWarnings = 0;
|
||||||
g_numCompilerErrors = 0;
|
g_numCompilerErrors = 0;
|
||||||
g_lineNumber = 1;
|
g_lineNumber = 1;
|
||||||
|
|
Loading…
Reference in a new issue