[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: |
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);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldobjs/entrances woodthing.cxx,1.5,1.6,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/particles pingu_particle_holder.cxx,1.3,1.4 rain_particle_holder.cxx,1.3,1.4 smoke_particle_holder.cxx,1.2,1.3 snow_particle_holder.cxx,1.5,1.6
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/worldmap level_dot.cxx,1.7,1.8 manager.cxx,1.22,1.23 manager.hxx,1.16,1.17 path_drawable.cxx,1.5,1.6 pingus.cxx,1.25,1.26 sprite_drawable.cxx,1.2,1.3 surface_drawable.cxx,1.1,1.2 worldmap.hxx,1.20,1.21
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/particles pingu_particle_holder.cxx,1.3,1.4 rain_particle_holder.cxx,1.3,1.4 smoke_particle_holder.cxx,1.2,1.3 snow_particle_holder.cxx,1.5,1.6
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/worldmap level_dot.cxx,1.7,1.8 manager.cxx,1.22,1.23 manager.hxx,1.16,1.17 path_drawable.cxx,1.5,1.6 pingus.cxx,1.25,1.26 sprite_drawable.cxx,1.2,1.3 surface_drawable.cxx,1.1,1.2 worldmap.hxx,1.20,1.21
- Index(es):