drfrag666 / gzdoom

GZDoom adds an OpenGL renderer to the ZDoom source port.
http://gzdoom.drdteam.org
GNU General Public License v3.0
74 stars 16 forks source link

add console command to reset a CVAR to default value #28

Closed emawind84 closed 3 years ago

emawind84 commented 3 years ago

Rationale:

  1. Now to reset a CVAR to default, the user doesn't need to remember the default value.
  2. If a modder wants to reset a CVAR via menu command, they don't need to keep menudef and cvarinfo in sync.

https://github.com/coelckers/gzdoom/commit/18a8fafd7d3b593f672a3d29aaf711d25ca79531 https://github.com/coelckers/gzdoom/commit/92d68d05db5340f42f7b04f97ff3f33a2196f7e8

Co-authored-by: Alexander mmaulwurff@gmail.com

drfrag666 commented 3 years ago

Thanks, i don't know why i didn't merge this. But it could be merged directly, it's the same code.