-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Milestone
Description
Are we sure that the members of DvarFlags enum are correct?
KisakCOD/src/universal/q_shared.h
Lines 415 to 438 in e2a2c98
| enum DvarFlags : uint16 | |
| { | |
| DVAR_NOFLAG = 0x0, | |
| DVAR_ARCHIVE = 0x1, // will be saved to config_mp.cfg | |
| DVAR_USERINFO = 0x2, // sent to server on connect or change | |
| DVAR_SERVERINFO = 0x4, // sent in response to front end requests | |
| DVAR_SYSTEMINFO = 0x8, // this is sent (replicated) to all clients if you are host | |
| DVAR_INIT = 0x10, // don't allow change from console at all (i think) | |
| DVAR_LATCH = 0x20, // will only change when C code next does | |
| // a Cvar_Get(), so it can't be changed | |
| // without proper initialization. modified | |
| // will be set, even though the value hasn't changed yet | |
| DVAR_ROM = 0x40, // display only, cannot be set by user at all (can be set by code) | |
| DVAR_CHEAT = 0x80, // can not be changed if cheats are disabled | |
| // DVAR_AUTOEXEC, DVAR_SAVED, and DVAR_CHANGEABLE_RESET are not 100% sure | |
| DVAR_TEMP = 0x100, | |
| DVAR_AUTOEXEC = 0x200, | |
| DVAR_NORESTART = 0x400, // do not clear when a cvar_restart is issued | |
| DVAR_SAVED = 0x1000, | |
| DVAR_EXTERNAL = 0x4000, // created by a set command or setclientdvar | |
| DVAR_CHANGEABLE_RESET = 0x8000, | |
| }; |
The reason I ask is that the function GScr_MakeDvarServerInfo is used to flag a DVAR with the DVAR_CODINFO flag and if you look at the implementation it uses 256 (0x100):
KisakCOD/src/game_mp/g_scr_main_mp.cpp
Line 5558 in e2a2c98
| Dvar_AddFlags(dvar, 256); |
Which is DVAR_TEMP in our DvarFlags enum.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested