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 smasher.cxx,1.15,1.16 starf


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/worldobjs smasher.cxx,1.15,1.16 starfield_background_stars.cxx,1.4,1.5
Date: 27 Jan 2003 22:14:54 -0000

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

Modified Files:
        smasher.cxx starfield_background_stars.cxx 
Log Message:
fixed a few warnings from VC 7


Index: smasher.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjs/smasher.cxx,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- smasher.cxx 28 Dec 2002 16:10:18 -0000      1.15
+++ smasher.cxx 27 Jan 2003 22:14:52 -0000      1.16
@@ -74,7 +74,7 @@
                            {
                              
world->get_smoke_particle_holder()->add_particle(static_cast<int>(data->pos.x + 
20 + rand() % 260),
                                                                                
                       static_cast<int>(data->pos.y + 180),
-                                                                               
                       frand()-0.5, frand()-0.5);
+                                                                               
                       frand()-0.5f, frand()-0.5f);
                            }
 
                    for (PinguIter pingu = holder->begin (); pingu != 
holder->end (); ++pingu)

Index: starfield_background_stars.cxx
===================================================================
RCS file: 
/usr/local/cvsroot/Games/Pingus/src/worldobjs/starfield_background_stars.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- starfield_background_stars.cxx      1 Oct 2002 19:53:46 -0000       1.4
+++ starfield_background_stars.cxx      27 Jan 2003 22:14:52 -0000      1.5
@@ -49,8 +49,8 @@
   x_pos = rand() % world->get_width();
   y_pos = rand() % world->get_height();
   
-  x_add = rand() % 5 + 1.0;
-  y_add = 0.0;
+  x_add = rand() % 5 + 1.0f;
+  y_add = 0.0f;
 }
 
 void





reply via email to

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