projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70529cc
)
Check to make sure worldmap level sprite has a 'perfect' action before trying to...
author
LMH
<lmh.0013@gmail.com>
Sun, 15 Sep 2013 09:07:09 +0000
(23:07 -1000)
committer
LMH
<lmh.0013@gmail.com>
Sun, 15 Sep 2013 09:09:18 +0000
(23:09 -1000)
src/worldmap/worldmap.cpp
patch
|
blob
|
history
diff --git
a/src/worldmap/worldmap.cpp
b/src/worldmap/worldmap.cpp
index
09bb8b5
..
339e4e7
100644
(file)
--- a/
src/worldmap/worldmap.cpp
+++ b/
src/worldmap/worldmap.cpp
@@
-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();