Quake3World.com Forums
Programming Discussion
Single-line cvar declaration
Login
|
Profile
|
|
FAQ
|
Search
|
IRC
Print view
Previous topic
|
Next topic
Topic Starter
Topic: Single-line cvar declaration
LegendGuard
Commander
Joined: 08 Jun 2022
Posts: 111
Posted: 08-21-2023 10:49 AM
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
Top
Quake3World.com
|
Forum Index
|
Programming Discussion