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 sprite_instance.cpp


From: Vitaly Alexeev
Subject: [Gnash-commit] gnash/server movie_root.cpp sprite_instance.cpp
Date: Thu, 15 Jun 2006 11:21:29 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Vitaly Alexeev <alexeev>        06/06/15 11:21:29

Modified files:
        server         : movie_root.cpp sprite_instance.cpp 

Log message:
        Small optimization

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.9&r2=1.10

Patches:
Index: movie_root.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/movie_root.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- movie_root.cpp      14 Jun 2006 13:02:50 -0000      1.4
+++ movie_root.cpp      15 Jun 2006 11:21:29 -0000      1.5
@@ -51,7 +51,6 @@
 #include "log.h"
 #include "sprite_instance.h"
 #include "render.h"
-#include "tu_random.h"
 
 using namespace std;
 
@@ -182,10 +181,6 @@
 movie_root::advance(float delta_time)
 {
 //            GNASH_REPORT_FUNCTION;
-       // 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)
 //        {

Index: sprite_instance.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- sprite_instance.cpp 14 Jun 2006 13:02:50 -0000      1.9
+++ sprite_instance.cpp 15 Jun 2006 11:21:29 -0000      1.10
@@ -61,6 +61,7 @@
 #include "text.h"
 #include "execute_tag.h"
 #include "fn_call.h"
+#include "tu_random.h"
 
 using namespace std;
 
@@ -1151,6 +1152,12 @@
        // Check for the end of frame
        if (m_time_remainder >= m_frame_time)
        {
+
+               // 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();
+
                m_time_remainder -= m_frame_time;
                advance_sprite(delta_time);
 




reply via email to

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