pingus-cvs
[Top][All Lists]
Advanced

[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);
     }
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]