Inlined some functions for improved speed. Fixed a constructor variable init in engine_info.