Open vrad-exe opened 2 years ago
If a cvar in a CFG file is followed by a comment, the cvar will be set to a string which includes the comment. For example:
sv_cheats 1 // Enable cheats on startup
will literally set the value of sv_cheats to 1 // Enable cheats on startup, rather than ignoring the comment (and preceding space) as expected.
sv_cheats
1 // Enable cheats on startup
For integer/float cvars everything still seems to work fine, but this causes a problem for cvars which take a string.
It should ignore the comment.
Tested on Windows 10
Still an issue
Still an issue on staging
Describe the bug
If a cvar in a CFG file is followed by a comment, the cvar will be set to a string which includes the comment. For example:
will literally set the value of
sv_cheats
to1 // Enable cheats on startup
, rather than ignoring the comment (and preceding space) as expected.For integer/float cvars everything still seems to work fine, but this causes a problem for cvars which take a string.
To Reproduce
sv_cheats
into the console but don't hit enter, the autocomplete will show the bugExpected Behavior
It should ignore the comment.
Operating System
Tested on Windows 10