]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - xonotic-common.cfg
deglobalization: optional logging and clearing
[xonotic/xonotic-data.pk3dir.git] / xonotic-common.cfg
index f44d9c96f969fa5853216a289a2d8c7e0bdeffb9..ceb948821d8f98556d44e670f6bdbec00b9cd22d 100644 (file)
@@ -144,6 +144,9 @@ seta snd_channel9volume 1 "QuakeC controlled ambient sound volume"
 snd_identicalsoundrandomization_time -0.1
 snd_identicalsoundrandomization_tics    1
 
+set debug_deglobalization_logging 0 "bitfield: 1 logs usage of the old functions which use globals implicitly, 2 logs usage of the new wrappers; support for this must be enabled at compile time"
+set debug_deglobalization_clear 0 "make the new wrappers set globals to NaN after use, this helps find bugs but can result in crashes; support for this must be enabled at compile time"
+
 // load console command aliases and settings
 exec commands.cfg