Very minimalistic simplification of some code in ball/util.c.
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Wed, 2 Aug 2006 12:36:10 +0000 (12:36 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Wed, 2 Aug 2006 12:36:10 +0000 (12:36 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@529 78b8d119-cf0a-0410-b17c-f493084dd1d7

ball/util.c

index e52a05c..a0a5d37 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);
     }
 }