Proper ball shadow removal in poser mode. Patch from Elviz.
[neverball] / ball / set.c
index 89c558e..866e797 100644 (file)
@@ -20,6 +20,7 @@
 #include "glext.h"
 #include "config.h"
 #include "image.h"
+#include "text.h"
 #include "set.h"
 #include "game.h"
 
@@ -152,8 +153,8 @@ static void set_load_hs(void)
     if (!res && errno != ENOENT)
     {
         fprintf(stderr,
-                _("Error while loading user high-score file '%s': %s\n"),
-                fn, errno ? strerror(errno) : _("Incorrect format"));
+                L_("Error while loading user high-score file '%s': %s\n"),
+                fn, errno ? strerror(errno) : L_("Incorrect format"));
     }
 }
 
@@ -177,7 +178,7 @@ static int set_load(struct set *s, const char *filename)
 
     if (!fin)
     {
-        fprintf(stderr, _("Cannot load the set file '%s': %s\n"),
+        fprintf(stderr, L_("Cannot load the set file '%s': %s\n"),
                 filename, strerror(errno));
         return 0;
     }
@@ -563,11 +564,6 @@ void level_snap(int i)
 
     if (game_init(&level_v[i], 0, 0))
     {
-        int shadow;
-
-        if ((shadow = config_get_d(CONFIG_SHADOW)))
-            config_set_d(CONFIG_SHADOW, 0);
-
         /* Render the level and grab the screen. */
 
         config_clear();
@@ -577,9 +573,6 @@ void level_snap(int i)
         SDL_GL_SwapBuffers();
 
         image_snap(filename);
-
-        if (shadow)
-            config_set_d(CONFIG_SHADOW, 1);
     }
 }