projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix issue with action not being updated when typing grow()/fire()/etc in console...
[supertux.git]
/
src
/
object
/
fireworks.cpp
diff --git
a/src/object/fireworks.cpp
b/src/object/fireworks.cpp
index
a6333c5
..
d3037ea
100644
(file)
--- a/
src/object/fireworks.cpp
+++ b/
src/object/fireworks.cpp
@@
-31,7
+31,8
@@
Fireworks::Fireworks()
{
Fireworks::Fireworks()
{
- timer.start(.2);
+ timer.start(.2f);
+ sound_manager->preload("sounds/fireworks.wav");
}
Fireworks::~Fireworks()
}
Fireworks::~Fireworks()
@@
-54,7
+55,7
@@
Fireworks::update(float )
(void) red;
(void) green;
sector->add_object(new Particles(pos, 0, 360, Vector(140, 140),
(void) red;
(void) green;
sector->add_object(new Particles(pos, 0, 360, Vector(140, 140),
- Vector(0, 0), 45, Color(red, green, 0), 3, 1.3,
+ Vector(0, 0), 45, Color(red, green, 0), 3, 1.3
f
,
LAYER_FOREGROUND1+1));
sound_manager->play("sounds/fireworks.wav");
timer.start(systemRandom.randf(1.0, 1.5));
LAYER_FOREGROUND1+1));
sound_manager->play("sounds/fireworks.wav");
timer.start(systemRandom.randf(1.0, 1.5));