projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4155d0d
)
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
Tobias Markus
<tobbi@mozilla-uk.org>
Sat, 26 Oct 2013 16:45:23 +0000
(18:45 +0200)
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();