mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-18 18:12:18 +00:00
Make i_timescale cvar virtual
Changing i_timescale in a netgame would cause its callback to recurse into itself infinitely. CVAR_VIRTUAL prevents this.
This commit is contained in:
parent
3b50f7dfa6
commit
c6073d9c9d
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ const char* iwad_folders[13] = { "flats/", "textures/", "hires/", "sprites/", "v
|
|||
const char* iwad_reserved[12] = { "mapinfo", "zmapinfo", "gameinfo", "sndinfo", "sbarinfo", "menudef", "gldefs", "animdefs", "decorate", "zscript", "iwadinfo", "maps/" };
|
||||
|
||||
|
||||
CUSTOM_CVAR(Float, i_timescale, 1.0f, CVAR_NOINITCALL)
|
||||
CUSTOM_CVAR(Float, i_timescale, 1.0f, CVAR_NOINITCALL | CVAR_VIRTUAL)
|
||||
{
|
||||
if (netgame)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue