From 0bf329e70de1810c8c0d657064d4adbff7d5f974 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 25 Dec 2011 15:35:06 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/gamedef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index ff66f9a80..b45d4e853 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -5781,7 +5781,7 @@ void C_Compile(const char *filenam) // initprintf("script: %d, bitptr: %d\n",script,bitptr); 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_numCompilerErrors = 0; g_lineNumber = 1;