Made progress for unit type building a bit more regular.

This commit is contained in:
Guillaume Melquiond 2010-08-10 12:40:08 +00:00
parent 361fc19909
commit 49c0dbb3d2
2 changed files with 6 additions and 5 deletions

View file

@ -218,17 +218,17 @@ static int const nb_stages = 19;
static load_stage const stages[nb_stages] =
{
{ "init gui", N_("Initializing user interface"), 0, 16809 },
{ "load config", N_("Loading game configuration"), 26, 0 },
{ "verify cache", N_("Verifying cache"), 27, 177 },
{ "create cache", N_("Reading files and creating cache"), 29, 78972 },
{ "load unit types", N_("Reading unit files"), 68, 253 },
{ "load config", N_("Loading game configuration"), 38, 0 },
{ "verify cache", N_("Verifying cache"), 39, 177 },
{ "create cache", N_("Reading files and creating cache"), 41, 78972 },
{ "load unit types", N_("Reading unit files"), 88, 459 },
{ "init fonts", N_("Re-initialize fonts for the current language"), 98, 17 },
{ "refresh addons", N_("Searching for installed add-ons"), 99, 6 },
{ "titlescreen", N_("Loading title screen"), 100, 0 },
{ "load data", N_("Loading data files"), 0, 0 },
{ "verify cache", N_("Verifying cache"), 0, 0 },
{ "create cache", N_("Reading files and creating cache"), 0, 391238 },
{ "load unit types", N_("Reading unit files"), 29, 265 },
{ "load unit types", N_("Reading unit files"), 29, 480 },
{ "load level", N_("Loading level"), 32, 0 },
{ "init teams", N_("Initializing teams"), 32, 0 },
{ "load units", N_("Loading units"), 33, 0 },

View file

@ -1207,6 +1207,7 @@ void unit_type_data::build_all(unit_type::BUILD_STATUS status)
for (unit_type_map::iterator u = types_.begin(), u_end = types_.end(); u != u_end; ++u) {
build_unit_type(u, status);
loadscreen::increment_progress();
}
for (unit_type_map::iterator u = types_.begin(), u_end = types_.end(); u != u_end; ++u) {
add_advancement(u->second);