Skip to content

Commit

Permalink
Check to make sure worldmap level sprite has a 'perfect' action befor…
Browse files Browse the repository at this point in the history
…e trying to set it once level is completed
  • Loading branch information
LMH0013 committed Sep 15, 2013
1 parent 70529cc commit 5d875d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/worldmap/worldmap.cpp
Expand Up @@ -482,7 +482,8 @@ WorldMap::finished_level(Level* gamelevel)
get_level_target_time(*level);
if(level->statistics.completed(level->statistics, level->target_time)) {
level->perfect = true;
level->sprite->set_action("perfect");
if(level->sprite->has_action("perfect"))
level->sprite->set_action("perfect");
}

save_state();
Expand Down

0 comments on commit 5d875d7

Please sign in to comment.