Substitute "degrees" for the degree sign, fix grammar, remove some
[neverball] / ball / util.c
index e52a05c..1662ba0 100644 (file)
@@ -222,10 +222,7 @@ void set_best_times(const struct score *s, int hilight, int goal)
     int j, spe;
     const char *name;
 
-    if (goal)
-        gui_set_label(time_l, _("Unlock Goal"));
-    else
-        gui_set_label(time_l, _("Best Times"));
+    gui_set_label(time_l, goal ? _("Unlock Goal") : _("Best Times"));
 
     if (s == NULL)
     {
@@ -269,10 +266,10 @@ static void gui_fill(int id, char *line)
     char l[2];
     l[1] = '\0';
 
-    while(*line)
+    while (*line)
     {
         *l = *(line++);
-        keyd[(int)*l] = gui_state(id, l, GUI_SML, *l, 0);
+        keyd[(int) *l] = gui_state(id, l, GUI_SML, *l, 0);
     }
 }
 
@@ -362,7 +359,7 @@ int gui_maybe(int id, const char *label, int token, int enabled)
         bd = gui_state(id, label, GUI_SML, token,    0);
     else
     {
-        bd = gui_state(id, label, GUI_SML, GUI_NULL, 0);
+        bd = gui_state(id, label, GUI_SML, token >= 0 ? token | GUI_NULL_MASK : GUI_NULL, 0);
         gui_set_color(bd, gui_gry, gui_gry);
     }
     return bd;