Nevermania: Tweaks
[neverball] / ball / st_level.c
index b49a301..f408dbd 100644 (file)
@@ -12,6 +12,8 @@
  * General Public License for more details.
  */
 
+#include <string.h>
+
 #include "gui.h"
 #include "game.h"
 #include "set.h"
@@ -48,8 +50,9 @@ static int level_enter(void)
 
             if ((kd = gui_vstack(jd)))
             {
-                gui_label(kd, _(curr_set()->name), GUI_SML,
-                          GUI_ALL, gui_wht, gui_wht);
+                gui_label(kd, set_name(curr_set()), GUI_SML, GUI_ALL,
+                          gui_wht, gui_wht);
+
                 gui_space(kd);
 
                 if ((ld = gui_hstack(kd)))
@@ -127,9 +130,9 @@ static int level_buttn(int b, int d)
 
 /*---------------------------------------------------------------------------*/
 
-static void poser_paint(int id, float st)
+static void poser_paint(int id, float t)
 {
-    game_draw(1, st);
+    game_draw(1, t);
 }
 
 static int poser_buttn(int c, int d)
@@ -149,6 +152,7 @@ struct state st_level = {
     level_timer,
     NULL,
     NULL,
+    NULL,
     level_click,
     level_keybd,
     level_buttn,
@@ -164,6 +168,7 @@ struct state st_poser = {
     NULL,
     NULL,
     NULL,
+    NULL,
     poser_buttn,
     1, 0
 };