Skip to content

Commit

Permalink
Potentially fix high disk I/O on worldmaps. Set Tux position variable…
Browse files Browse the repository at this point in the history
… higher in the process
  • Loading branch information
tobbi committed Apr 7, 2015
1 parent 35e64be commit 802ced1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/worldmap/worldmap.cpp
Expand Up @@ -372,6 +372,8 @@ WorldMap::get_level_target_time(LevelTile& level)
return;
}

last_position = level.pos;

try {
lisp::Parser parser;
const lisp::Lisp* root = parser.parse(levels_path + level.get_name());
Expand All @@ -382,7 +384,6 @@ WorldMap::get_level_target_time(LevelTile& level)

level_lisp->get("target-time", level.target_time);

last_position = level.pos;
last_target_time = level.target_time;

} catch(std::exception& e) {
Expand Down

0 comments on commit 802ced1

Please sign in to comment.