From c8f1e9bf371ef74aa00deafe1a632efa505d7589 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Fri, 14 Oct 2016 07:40:44 +0000 Subject: [PATCH] C-CON: Allow gamestartup to read in one additional parameter (MAXFLAMETHROWERAMMO). Do nothing with it yet. git-svn-id: https://svn.eduke32.com/eduke32@5894 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 234fc0c03..1c1263765 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -6013,16 +6013,16 @@ repeatcase: case CON_GAMESTARTUP: { - int32_t params[30]; + int32_t params[31]; g_scriptPtr--; - for (j = 0; j < 30; j++) + for (j = 0; j < 31; j++) { C_GetNextValue(LABEL_DEFINE); g_scriptPtr--; params[j] = *g_scriptPtr; - if (j != 12 && j != 21 && j != 25) continue; + if (j != 12 && j != 21 && j != 25 && j != 29) continue; if (C_GetKeyword() != -1) { @@ -6032,10 +6032,12 @@ repeatcase: g_scriptVersion = 11; else if (j == 25) g_scriptVersion = 13; + else if (j == 29) + g_scriptVersion = 14; break; } else - g_scriptVersion = 14; + g_scriptVersion = 16; } /*