#include "glext.h"
#include "config.h"
#include "image.h"
+#include "text.h"
#include "set.h"
#include "game.h"
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"));
}
}
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;
}
return (lg->score_rank < 3 || lg->times_rank < 3);
}
-
/* Update the player name for set and level high-score. */
void score_change_name(struct level_game *lg, const char *player)
{
return NULL;
}
-/* Inform the set that a level is finished. Update next level and score
- * rank fields. */
+/*---------------------------------------------------------------------------*/
void set_finish_level(struct level_game *lg, const char *player)
{
}
/* On level completed */
- if (lg->state == GAME_GOAL)
+ if (lg->status == GAME_GOAL)
{
/* Update level scores */
dirty = level_score_update(lg, player);
}
/* On goal reached */
- if (lg->state == GAME_GOAL)
+ if (lg->status == GAME_GOAL)
{
/* Identify the following level */
nl = next_level(ln);
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();
SDL_GL_SwapBuffers();
image_snap(filename);
-
- if (shadow)
- config_set_d(CONFIG_SHADOW, 1);
}
}