From c6073d9c9d712c2442c63f023dc755543e58537f Mon Sep 17 00:00:00 2001 From: emily Date: Tue, 23 Mar 2021 21:59:40 +0100 Subject: [PATCH] Make i_timescale cvar virtual Changing i_timescale in a netgame would cause its callback to recurse into itself infinitely. CVAR_VIRTUAL prevents this. --- src/d_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 0f3d122f46..d72456099f 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -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) {