cvar latch

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
camaxide
Posts: 386
Joined: Thu Jun 11, 2015 8:38 am

cvar latch

Post by camaxide »

https://zdoom.org/wiki/CVARINFO
this states that:
latch: Changes to this CVAR only take effect upon starting a new game. This is only the case when changing it from the console, however.

is this wrong? when I use this and change the latched cvar with ACS script - it will not change until I start a new game.
I need to set a cvar in the start of the game, than the user cant manually change with the console during that game. so I need ACS to be able to change the value, but not the console.
User avatar
Rachael
Posts: 13881
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: cvar latch

Post by Rachael »

So this was a miswording in the wiki. But there is still an issue here:

Changing a latched cvar in the menu does not reflect the upcoming change, the menu instead sticks to the old cvar the way it was.

Return to “Bugs [GZDoom]”