Revision: 6643 http://playerstage.svn.sourceforge.net/playerstage/?rev=6643&view=rev Author: jeremy_asher Date: 2008-06-18 14:49:58 -0700 (Wed, 18 Jun 2008)
Log Message: ----------- Fixed saving bug Modified Paths: -------------- code/stage/trunk/libstage/stage.hh code/stage/trunk/libstage/worldgui.cc Modified: code/stage/trunk/libstage/stage.hh =================================================================== --- code/stage/trunk/libstage/stage.hh 2008-06-18 21:16:44 UTC (rev 6642) +++ code/stage/trunk/libstage/stage.hh 2008-06-18 21:49:58 UTC (rev 6643) @@ -1010,7 +1010,7 @@ //stg_id_t id; - GHashTable* models_by_id; ///< the models that make up the world, indexed by id + //GHashTable* models_by_id; ///< the models that make up the world, indexed by id GHashTable* models_by_name; ///< the models that make up the world, indexed by name GList* velocity_list; ///< a list of models that have non-zero velocity, for efficient updating @@ -1133,7 +1133,7 @@ /** call func( model, arg ) for each model in the world */ void ForEachModel( GHFunc func, void* arg ) - { g_hash_table_foreach( models_by_id, func, arg ); }; + { g_hash_table_foreach( models_by_name, func, arg ); }; /** Return the number of times the world has been updated. */ long unsigned int GetUpdateCount() Modified: code/stage/trunk/libstage/worldgui.cc =================================================================== --- code/stage/trunk/libstage/worldgui.cc 2008-06-18 21:16:44 UTC (rev 6642) +++ code/stage/trunk/libstage/worldgui.cc 2008-06-18 21:49:58 UTC (rev 6643) @@ -594,6 +594,9 @@ // TODO - per model visualizations save } + + // TODO - error checking + return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit