Revision: 7004
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7004&view=rev
Author:   alexcb
Date:     2008-09-04 03:47:55 +0000 (Thu, 04 Sep 2008)

Log Message:
-----------
fixed raytracing bug caching when region set at (0,0)

Modified Paths:
--------------
    code/stage/trunk/libstage/world.cc

Modified: code/stage/trunk/libstage/world.cc
===================================================================
--- code/stage/trunk/libstage/world.cc  2008-09-02 11:56:30 UTC (rev 7003)
+++ code/stage/trunk/libstage/world.cc  2008-09-04 03:47:55 UTC (rev 7004)
@@ -498,9 +498,9 @@
        lastsup.x = INT_MAX; // an unlikely first raytrace
        lastsup.y = INT_MAX;
        
-       stg_point_int_t lastreg = {0,0};
-       lastsup.x = INT_MAX; // an unlikely first raytrace
-       lastsup.y = INT_MAX;
+       stg_point_int_t lastreg;
+       lastreg.x = INT_MAX; // an unlikely first raytrace
+       lastreg.y = INT_MAX;
        
        SuperRegion* sr = NULL;
        Region* r = NULL;
@@ -548,7 +548,7 @@
                                lastreg = reg;
                                nonempty_region = ( r && r->count );
                        }
-                       
+
                        if( nonempty_region )
                        {
                                //  printf( "C[ %d %d ]\t", cell.x, cell.y );


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to