From 0354e3884308f298087d3a1331f1d051a194fc14 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 25 Feb 2013 15:31:05 +0000 Subject: [PATCH] CON parser: don't allow read-only gamevars to 'readgamevar' command. git-svn-id: https://svn.eduke32.com/eduke32@3522 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index ca10dc98b..4cb156fbf 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -4048,7 +4048,6 @@ static int32_t C_ParseCommand(int32_t loop) case CON_CHECKAVAILINVEN: case CON_GUNIQHUDID: case CON_SAVEGAMEVAR: - case CON_READGAMEVAR: case CON_USERQUOTE: case CON_ECHO: case CON_STARTTRACKVAR: @@ -4057,6 +4056,9 @@ static int32_t C_ParseCommand(int32_t loop) case CON_SETGAMEPALETTE: C_GetNextVar(); continue; + case CON_READGAMEVAR: + C_GetNextVarType(GAMEVAR_READONLY); + continue; case CON_ENHANCED: // don't store in pCode...