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: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/worldobjs/entrances woodthing.cxx,1.5,1.6
Date: 19 Feb 2003 09:50:39 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/worldobjs/entrances
In directory dark:/tmp/cvs-serv22817/worldobjs/entrances

Modified Files:
        woodthing.cxx 
Log Message:
moved a whole bunch of files around


Index: woodthing.cxx
===================================================================
RCS file: 
/usr/local/cvsroot/Games/Pingus/src/worldobjs/entrances/woodthing.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- woodthing.cxx       27 Jan 2003 22:14:52 -0000      1.5
+++ woodthing.cxx       19 Feb 2003 09:50:37 -0000      1.6
@@ -17,8 +17,8 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-#include "../../algo.hxx"
-#include "../../graphic_context.hxx"
+#include "../../math.hxx"
+#include "../../gui/graphic_context.hxx"
 #include "../../particles/smoke_particle_holder.hxx"
 #include "../../pingus_resource.hxx"
 #include "../../world.hxx"
@@ -49,10 +49,10 @@
 
   if (rand() % 5 == 0) 
     {
-      // FIXME: Memory leak
-      
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.6f, (frand() + 1) * -0.6f);
+      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),
+                     (Math::frand() + 1) * -0.6f, (Math::frand() + 1) * -0.6f);
     }
 }
 





reply via email to

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