Rewritten in C++ and improved id Tech 1 engine.