Fix crash upon entering Comm-Bat.
Optimization.
Inline some functions and enable the compiler flag for release builds.
Fix crash on single player startup.