Update of /cvsroot/playerstage/code/stage/libstage
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31316/libstage
Modified Files:
region.hh world.cc
Log Message:
bug fixes
Index: region.hh
===================================================================
RCS file: /cvsroot/playerstage/code/stage/libstage/region.hh,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** region.hh 3 Mar 2008 07:01:12 -0000 1.2
--- region.hh 4 Mar 2008 02:21:49 -0000 1.3
***************
*** 5,11 ****
*/
- const double STG_DEFAULT_WORLD_PPM = 50; // 2cm pixels
- const stg_msec_t STG_DEFAULT_WORLD_INTERVAL_REAL = 100; ///< real time
between updates
- const stg_msec_t STG_DEFAULT_WORLD_INTERVAL_SIM = 100; ///< duration of sim
timestep
const uint32_t RBITS = 6; // regions contain (2^RBITS)^2 pixels
const uint32_t SBITS = 5; // superregions contain (2^SBITS)^2 regions
--- 5,8 ----
Index: world.cc
===================================================================
RCS file: /cvsroot/playerstage/code/stage/libstage/world.cc,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** world.cc 24 Feb 2008 23:24:40 -0000 1.10
--- world.cc 4 Mar 2008 02:21:49 -0000 1.11
***************
*** 59,62 ****
--- 59,66 ----
bool StgWorld::quit_all = false;
+ const double STG_DEFAULT_WORLD_PPM = 50; // 2cm pixels
+ const stg_msec_t STG_DEFAULT_WORLD_INTERVAL_REAL = 100; ///< real time
between updates
+ const stg_msec_t STG_DEFAULT_WORLD_INTERVAL_SIM = 100; ///< duration of sim
timestep
+
static guint PointIntHash( stg_point_int_t* pt )
{
***************
*** 141,145 ****
this->total_subs = 0;
! this->paused = true;
this->destroy = false;
--- 145,149 ----
this->total_subs = 0;
! this->paused = false;
this->destroy = false;
***************
*** 253,258 ****
wf->ReadInt( entity, "quit_time", 0 );
! this->ppm =
! 1.0 / wf->ReadFloat( entity, "resolution", this->ppm );
this->paused =
--- 257,263 ----
wf->ReadInt( entity, "quit_time", 0 );
! if( wf->PropertyExists( entity, "resolution" ) )
! this->ppm =
! 1.0 / wf->ReadFloat( entity, "resolution", STG_DEFAULT_WORLD_PPM );
this->paused =
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit