if (leveldir_current == NULL)
leveldir_current = getFirstValidTreeInfoEntry(leveldir_first);
}
+
+ SetLevelSetInfo(leveldir_current->identifier, level_nr);
}
static void InitLevelArtworkInfo()
struct LevelSetInfo
{
int music[MAX_LEVELS];
+
+ char *identifier;
+ int level_nr;
};
struct LevelStats
level_nr = new_level_nr;
}
+ SetLevelSetInfo(new_leveldir_identifier, new_level_nr);
+
/* needed if level set of network game changed graphics, sounds or music */
ReloadCustomArtwork(0);
init_last = init; /* switch to new busy animation */
+ SetLevelSetInfo(leveldir_current->identifier, level_nr);
+
/* needed if last screen (level choice) changed graphics, sounds or music */
ReloadCustomArtwork(0);
SetFontStatus(-1);
}
+void SetLevelSetInfo(char *identifier, int level_nr)
+{
+ setString(&levelset.identifier, identifier);
+
+ levelset.level_nr = level_nr;
+}
+
boolean CheckIfPlayfieldViewportHasChanged()
{
// if game status has not changed, playfield viewport has not changed either
void SetFontStatus(int);
void ResetFontStatus();
+void SetLevelSetInfo(char *, int);
+
void ToggleFullscreenOrChangeWindowScalingIfNeeded();
void ChangeViewportPropertiesIfNeeded();