Page 1 of 1

Single-line cvar declaration

Posted: Mon Aug 21, 2023 6:49 pm
by LegendGuard
I made the cvar declaration only declare in single line instead declaring in 3 lines interacting 2 files:
https://github.com/LegendaryGuard/BFP/c ... 5384c9649a

This reduces time and effort when creating a cvar in the code.

You can find that in this repository too (if you want to start with Q3 code (also there's Team Arena)):
https://github.com/ec-/baseq3a

For reference, it was based by OpenJK, credits: Razor.

https://github.com/JACoders/OpenJK/blob ... e/g_cvar.c
https://github.com/JACoders/OpenJK/blob ... /g_xcvar.h