cgame: fix var scope (refs #56)