cgame: fixed potential division by zero, refs #478