pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src math.hxx,1.6,1.7


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src math.hxx,1.6,1.7
Date: 19 Feb 2003 17:17:31 -0000

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

Modified Files:
        math.hxx 
Log Message:
- added intesity to snow generator
- misc other stuff


Index: math.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/math.hxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- math.hxx    19 Feb 2003 09:50:36 -0000      1.6
+++ math.hxx    19 Feb 2003 17:16:59 -0000      1.7
@@ -63,6 +63,12 @@
   return double(rand()) / (RAND_MAX+1.0);
 }
 
+inline
+bool rand_bool()
+{
+  return rand()%2 == 0;
+}
+
 } // namespace Math
 
 #endif





reply via email to

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