projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replaced .reset(new Surface()) with a factory method
[supertux.git]
/
src
/
supertux
/
player_status.cpp
diff --git
a/src/supertux/player_status.cpp
b/src/supertux/player_status.cpp
index
24bde70
..
4dc5188
100644
(file)
--- a/
src/supertux/player_status.cpp
+++ b/
src/supertux/player_status.cpp
@@
-40,7
+40,7
@@
PlayerStatus::PlayerStatus() :
{
reset();
- coin_surface
.reset(new Surface("images/engine/hud/coins-0.png")
);
+ coin_surface
= Surface::create("images/engine/hud/coins-0.png"
);
sound_manager->preload("sounds/coin.wav");
sound_manager->preload("sounds/lifeup.wav");
}