Revision: 6943 http://playerstage.svn.sourceforge.net/playerstage/?rev=6943&view=rev Author: alexcb Date: 2008-08-05 00:27:41 +0000 (Tue, 05 Aug 2008)
Log Message: ----------- fixed one bug in raytracing code, but discovered a new one Modified Paths: -------------- code/stage/trunk/libstage/world.cc Modified: code/stage/trunk/libstage/world.cc =================================================================== --- code/stage/trunk/libstage/world.cc 2008-08-01 21:03:15 UTC (rev 6942) +++ code/stage/trunk/libstage/world.cc 2008-08-05 00:27:41 UTC (rev 6943) @@ -441,7 +441,7 @@ } - +//TODO FIXME - there's a bug here ( the bug existsed before optimizations in revision 6893 ) reproducable with chatterbox on everything.world with walls near (0,0.6) void StgWorld::Raytrace( stg_pose_t pose, // global pose stg_meters_t range, stg_block_match_func_t func, @@ -518,6 +518,8 @@ stg_point_int_t sup; sup.x = x >> SRBITS; sup.y = y >> SRBITS; + //performed at the end of the loop ( for optimization ) + sr = (SuperRegion*)g_hash_table_lookup( superregions, (void*)&sup ); // find the region coords inside this superregion (again: only updated when x or y changes) stg_point_int_t reg; 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