[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs/entrances woodthing.cxx,1.
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs/entrances woodthing.cxx,1.3,1.4 |
Date: |
28 Dec 2002 16:10:20 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/worldobjs/entrances
In directory dark:/tmp/cvs-serv31100/worldobjs/entrances
Modified Files:
woodthing.cxx
Log Message:
rewrite of particle system
Index: woodthing.cxx
===================================================================
RCS file:
/usr/local/cvsroot/Games/Pingus/src/worldobjs/entrances/woodthing.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- woodthing.cxx 5 Nov 2002 03:02:48 -0000 1.3
+++ woodthing.cxx 28 Dec 2002 16:10:18 -0000 1.4
@@ -19,8 +19,7 @@
#include "../../algo.hxx"
#include "../../graphic_context.hxx"
-#include "../../particles/particle_holder.hxx"
-#include "../../particles/smoke_particle.hxx"
+#include "../../particles/smoke_particle_holder.hxx"
#include "../../pingus_resource.hxx"
#include "../../world.hxx"
#include "../../worldobjsdata/entrance_data.hxx"
@@ -51,10 +50,9 @@
if (rand() % 5 == 0)
{
// FIXME: Memory leak
- world->get_particle_holder()
- ->add_particle(new SmokeParticle(static_cast<int>(data->pos.x -
surface.get_width () / 2 - 24),
- static_cast<int>(data->pos.y -
surface.get_height() + 32 - 147),
- -0.6 * (frand() + 1), -0.6 *
(frand() + 1)));
+
world->get_smoke_particle_holder()->add_particle(static_cast<int>(data->pos.x -
surface.get_width () / 2 - 24),
+
static_cast<int>(data->pos.y - surface.get_height() + 32 - 147),
+
(frand() + 1) * -0.6, (frand() + 1) * -0.6);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldobjs/entrances woodthing.cxx,1.3,1.4,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src gui_screen.hxx,1.14,1.15
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src Makefile.am,1.125,1.126 sprite.cxx,1.11,1.12 world.cxx,1.33,1.34 world.hxx,1.19,1.20
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src gui_screen.hxx,1.14,1.15
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src Makefile.am,1.125,1.126 sprite.cxx,1.11,1.12 world.cxx,1.33,1.34 world.hxx,1.19,1.20
- Index(es):