Quake3World.com Forums
     Programming Discussion
        Single-line cvar declaration


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: Single-line cvar declaration

Commander
Commander
Joined: 08 Jun 2022
Posts: 100
PostPosted: 08-21-2023 10:49 AM           Profile Send private message  E-mail  Edit post Reply with quote


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


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.