gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/server movie_root.cpp


From: Vitaly Alexeev
Subject: [Gnash-commit] gnash/server movie_root.cpp
Date: Mon, 12 Jun 2006 17:23:51 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Vitaly Alexeev <alexeev>        06/06/12 17:23:51

Modified files:
        server         : movie_root.cpp 

Log message:
        add next_random() call to advance()

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.cpp?cvsroot=gnash&r1=1.2&r2=1.3

Patches:
Index: movie_root.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/movie_root.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- movie_root.cpp      7 Jun 2006 03:03:21 -0000       1.2
+++ movie_root.cpp      12 Jun 2006 17:23:51 -0000      1.3
@@ -51,6 +51,7 @@
 #include "log.h"
 //#include "sprite_instance.h"
 #include "render.h"
+#include "tu_random.h" //vv
 
 using namespace std;
 
@@ -181,6 +182,11 @@
 movie_root::advance(float delta_time)
 {
 //            GNASH_REPORT_FUNCTION;
+       //vv
+       // Vitaly: random should go continuously that:
+       // 1. after restart of the player the situation has not repeated
+       // 2. by different machines the random gave different numbers
+       tu_random::next_random();
             
     if (m_on_event_load_called == false)
         {




reply via email to

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