Skip to content

Commit

Permalink
WayPointFile: reduce the progress dialog to 25 steps
Browse files Browse the repository at this point in the history
From 100; this reduces the overhead for displaying the progress bar.
  • Loading branch information
MaxKellermann committed Sep 26, 2010
1 parent b0759ad commit acb388c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WayPoint/WayPointFile.cpp
Expand Up @@ -138,7 +138,7 @@ WayPointFile::Parse(Waypoints &way_points,
if (file[0] == 0)
return false;

ProgressGlue::SetRange(100);
ProgressGlue::SetRange(25);

// If normal file
if (!compressed) {
Expand All @@ -155,7 +155,7 @@ WayPointFile::Parse(Waypoints &way_points,
// and parse them
parseLine(line, i, way_points, terrain);

unsigned status = reader.tell() * 100 / filesize;
unsigned status = reader.tell() * 25 / filesize;
ProgressGlue::SetValue(status);
}
// If compressed file inside map file
Expand All @@ -173,7 +173,7 @@ WayPointFile::Parse(Waypoints &way_points,
// and parse them
parseLine(line, i, way_points, terrain);

unsigned status = reader.tell() * 100 / filesize;
unsigned status = reader.tell() * 25 / filesize;
ProgressGlue::SetValue(status);
}
}
Expand Down

0 comments on commit acb388c

Please sign in to comment.