9 year old game based on an even older engine code base still - chances are that code existed back in the 90s and hasn't been updated.
So, no, you remain wrong.. but hey, here's an idea, if you don't want to listen to people who know more than you don't start threads like this?
Well now I know.
By the way, using globals is tantamount to mentioning Hitler in an internet argument. You've lost
So I'm supposed to add an extra argument to every function where I want to use it? I'd have to rewrite all my rendering code to include a reference to the shader in use. There's like 50 functions. Plus I'd have to modify them internally to use that variable.
Secondly that is code from Quake3, a 14 year old game based on an even older engine, the state of the art has moved on ALOT since then... a lot.
Do you not think that John Carmack's code or software architecture and engineering would have improved in the last 20 years?
John Carmack wrote that when he was 29. http://en.wikipedia.org/wiki/John_D._Carmack#Games
Doom III at 34.
Quake II at 27.
At my age, he wrote Doom.
I'm still learning and making my Doom. Do you think it's possible for me to achieve indie success at my age with Corporation-States? (Look at some of my posts or journal entries.) Or my zombie FPS, Pathogen.
Maybe I'm still at the Wolfenstein 3D level in terms of developing my technology (my economics engine, which I hope will be as revolutionary as BSP and whatnot).
I don't want to make a lot of money, that's not what I'm after. And I know it's not possible yet.