pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/particles snow_particle_holder.cxx,1


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/particles snow_particle_holder.cxx,1.1,1.2 snow_particle_holder.hxx,1.1,1.2
Date: 31 Dec 2002 14:34:21 -0000

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

Modified Files:
        snow_particle_holder.cxx snow_particle_holder.hxx 
Log Message:
fix to make VC++ happy


Index: snow_particle_holder.cxx
===================================================================
RCS file: 
/usr/local/cvsroot/Games/Pingus/src/particles/snow_particle_holder.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- snow_particle_holder.cxx    28 Dec 2002 16:10:18 -0000      1.1
+++ snow_particle_holder.cxx    31 Dec 2002 14:34:19 -0000      1.2
@@ -36,21 +36,21 @@
   switch (rand() % 10)
     {
       case 0:
-        type = Snow1;
-             break;
-           case 1:
-             type = Snow2;
-             break;
-           case 2:
-           case 3:
-             type = Snow3;
-             break;
-           case 5:
-           case 6:
-             type = Snow4;
-           default:
-             type = Snow5;
-             break;
+        type = SnowParticleHolder::Snow1;
+       break;
+      case 1:
+       type = SnowParticleHolder::Snow2;
+       break;
+      case 2:
+      case 3:
+       type = SnowParticleHolder::Snow3;
+       break;
+      case 5:
+      case 6:
+       type = SnowParticleHolder::Snow4;
+      default:
+       type = SnowParticleHolder::Snow5;
+       break;
     }
 }
 

Index: snow_particle_holder.hxx
===================================================================
RCS file: 
/usr/local/cvsroot/Games/Pingus/src/particles/snow_particle_holder.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- snow_particle_holder.hxx    28 Dec 2002 16:10:18 -0000      1.1
+++ snow_particle_holder.hxx    31 Dec 2002 14:34:19 -0000      1.2
@@ -42,6 +42,8 @@
     SnowParticle(int x, int y, bool colliding_);
   };
 
+friend struct SnowParticle;
+
 private:
   CL_Surface snow1;
   CL_Surface snow2;




reply via email to

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