mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Added new variable for CONs:
numwalls numsectors There is a sufficient need for these variables because user may access uninitialized data if he/she uses MAXWALLS/MAXSECTOR. The numsprites is absent since the sprite array has gaps as the result of continual birth/dying/suiciding of sprites. git-svn-id: https://svn.eduke32.com/eduke32@770 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e84130c650
commit
72e0302353
1 changed files with 6 additions and 0 deletions
|
@ -1322,6 +1322,9 @@ static void AddSystemVars()
|
|||
|
||||
AddGameVar("display_mirror",(int)&display_mirror, GAMEVAR_FLAG_SYSTEM | GAMEVAR_FLAG_CHARPTR | GAMEVAR_FLAG_SYNCCHECK);
|
||||
AddGameVar("randomseed",(int)&randomseed, GAMEVAR_FLAG_SYSTEM | GAMEVAR_FLAG_INTPTR);
|
||||
|
||||
AddGameVar("numwalls",(int)&numwalls, GAMEVAR_FLAG_SYSTEM | GAMEVAR_FLAG_INTPTR | GAMEVAR_FLAG_READONLY);
|
||||
AddGameVar("numsectors",(int)&numsectors, GAMEVAR_FLAG_SYSTEM | GAMEVAR_FLAG_INTPTR | GAMEVAR_FLAG_READONLY);
|
||||
}
|
||||
|
||||
void InitGameVars(void)
|
||||
|
@ -1463,4 +1466,7 @@ static void ResetPointerVars(void)
|
|||
|
||||
aGameVars[GetGameID("display_mirror")].lValue = (intptr_t)&display_mirror;
|
||||
aGameVars[GetGameID("randomseed")].lValue = (intptr_t)&randomseed;
|
||||
|
||||
aGameVars[GetGameID("numwalls")].lValue = (intptr_t)&numwalls;
|
||||
aGameVars[GetGameID("numsectors")].lValue = (intptr_t)&numsectors;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue