projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some more aspect ratio stuff
[supertux.git]
/
src
/
badguy
/
mole_rock.cpp
diff --git
a/src/badguy/mole_rock.cpp
b/src/badguy/mole_rock.cpp
index
5de7914
..
14529c9
100644
(file)
--- a/
src/badguy/mole_rock.cpp
+++ b/
src/badguy/mole_rock.cpp
@@
-27,6
+27,8
@@
MoleRock::MoleRock(const lisp::Lisp& reader)
{
physic.enable_gravity(true);
countMe = false;
{
physic.enable_gravity(true);
countMe = false;
+ sound_manager->preload("sounds/fall.wav");
+ sound_manager->preload("sounds/stomp.wav");
}
MoleRock::MoleRock(const Vector& pos, const Vector& velocity, const BadGuy* parent = 0)
}
MoleRock::MoleRock(const Vector& pos, const Vector& velocity, const BadGuy* parent = 0)
@@
-34,11
+36,15
@@
MoleRock::MoleRock(const Vector& pos, const Vector& velocity, const BadGuy* pare
{
physic.enable_gravity(true);
countMe = false;
{
physic.enable_gravity(true);
countMe = false;
+ sound_manager->preload("sounds/fall.wav");
+ sound_manager->preload("sounds/stomp.wav");
}
MoleRock::MoleRock(const MoleRock& other)
: BadGuy(other), parent(other.parent), initial_velocity(Vector(0, -400))
{
}
MoleRock::MoleRock(const MoleRock& other)
: BadGuy(other), parent(other.parent), initial_velocity(Vector(0, -400))
{
+ sound_manager->preload("sounds/fall.wav");
+ sound_manager->preload("sounds/stomp.wav");
}
MoleRock::~MoleRock()
}
MoleRock::~MoleRock()