Cryengine Source Code
This is on the front page again. Please take some time to read this wonderful function: <a href="https://github.com/CRYTEK/CRYENGINE/blob/release/Code/CryEngine/CryPhysics/livingentity.cpp#L1300" rel="nofollow">https://github.com/CRYTEK/CRYENGINE/blob/release/Code/CryEng...</a><p>EDIT: That whole function is a minefield. Just taking a quick look:<p>* 814 lines of code<p>* goto inside 3 nested for-loops<p>* macros<p>* commented out code<p>* new/delete, with no RAII<p>* thread specific variables and locks (?)