cgame: fix possible null pointer dereference (refs #56)
cgame: unused code removal (refs #38)
ui: unused code removal (refs #38)