Update of /cvsroot/super-tux/supertux/src/object
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29683/src/object
Modified Files:
fireworks.cpp
Log Message:
fix tux jumping always full height
Index: fireworks.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/object/fireworks.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- fireworks.cpp 20 Nov 2004 22:14:40 -0000 1.1
+++ fireworks.cpp 22 Nov 2004 21:35:04 -0000 1.2
@@ -4,6 +4,7 @@
#include "resources.h"
#include "sector.h"
#include "camera.h"
+#include "gameobjs.h"
#include "app/globals.h"
#include "video/drawing_context.h"
#include "audio/sound_manager.h"
@@ -30,9 +31,9 @@
int red = rand() % 255;
int green = rand() % red;
- sector->add_particles(pos, 0, 360, Vector(140, 140),
- Vector(0, 0), 45, Color(red, green, 0), 3, 1300,
- LAYER_FOREGROUND1+1);
+ sector->add_object(new Particles(pos, 0, 360, Vector(140, 140),
+ Vector(0, 0), 45, Color(red, green, 0), 3, 1.3,
+ LAYER_FOREGROUND1+1));
SoundManager::get()->play_sound(IDToSound(SND_FIREWORKS));
timer.start(((float) rand() / RAND_MAX) + .5);
}
|