What are people's thoughts on using "_t" as a suffix for types in C/C++, as this source does? My understanding is that it is technically reserved for language defined types, but I haven't come across a reasonable alternative (and having no suffix makes for odd code, for example a custom type for a "viewport" is better imo as "viewport_t viewport;" than "viewport viewport;")
Source code for Quake 2 rerelease
21–30 of 232 posts
Re: Source code for Quake 2 rerelease
#22I saw grumbling elsewhere about how the re-release doesn't include a Linux version, but here they are with the source and it claims to be tested with clang. Big props to iD for sticking to their principles.
I wonder why they released the source code for this one. Is it purely because of the principles, or did they have a legal requirement since the old one is also GPL licensed? I'm assuming they don't have legal requirements since they owned the old code anyway.
Re: Source code for Quake 2 rerelease
#23What are people's thoughts on using "_t" as a suffix for types in C/C++, as this source does? My understanding is that it is technically reserved for language defined types, but I haven't come across a reasonable alternative (and having no suffix makes for odd code, for example a custom type for a "viewport" is better imo as "viewport_t viewport;" than "viewport viewport;")
Why spend the energy trying to think up two names (one for the function you're writing and one for what you should call the type of its result)? It's also amenable to preprocessor macros, if you're so inclined.
Re: Source code for Quake 2 rerelease
#24Quake II soundtrack is still in some sort of copyright limbo. It's easy enough to find on Youtube, but it's not on streaming services as far as I know. EDIT: maybe it's getting sorted out, there's even a fricking vinyl release https://www.lacedrecords.com/products/quake-2-limited-editio...
Re: Source code for Quake 2 rerelease
#25Re: Source code for Quake 2 rerelease
#26Quake II soundtrack is still in some sort of copyright limbo. It's easy enough to find on Youtube, but it's not on streaming services as far as I know. EDIT: maybe it's getting sorted out, there's even a fricking vinyl release https://www.lacedrecords.com/products/quake-2-limited-editio...
It was so good that I would sometimes put the game disc in a CD player just to vibe. Unfortunately that CD cracked, so I no longer have access to the music nor the game.
Re: Source code for Quake 2 rerelease
#27What are people's thoughts on using "_t" as a suffix for types in C/C++, as this source does? My understanding is that it is technically reserved for language defined types, but I haven't come across a reasonable alternative (and having no suffix makes for odd code, for example a custom type for a "viewport" is better imo as "viewport_t viewport;" than "viewport viewport;")
Re: Source code for Quake 2 rerelease
#28Re: Source code for Quake 2 rerelease
#29Oh man! Memories. Back in 1999, Quake II was the game I played (like, literally the only one). I sunk so much time in QII and I wrote my very first code building a Mod. I think it's fair to say, Quake II turned me from a computer user into a computer programmer. And set the course for my entire adult life and career. From my original mod, I learned how to calculate vectors, learn an existing code base, integrate auto…
Discovering the drop down console was a revelation. An homage: http://guake-project.org/