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
This commit is contained in:
helixhorned 2013-02-25 15:31:05 +00:00
parent 01469bc45a
commit 0354e38843

View file

@ -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...