mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
01469bc45a
commit
0354e38843
1 changed files with 3 additions and 1 deletions
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue