I spent a bit of time going through the Doom3 source code.It's probably the cleanest and nicest looking code I've ever seen.

September 20, 2012