Revision: 1743 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1743&view=rev Author: rorthomas Date: 2011-03-07 23:45:42 +0000 (Mon, 07 Mar 2011)
Log Message: ----------- fixed major issue in truck loading Modified Paths: -------------- trunk/source/main/physics/input_output/SerializedRig.cpp Modified: trunk/source/main/physics/input_output/SerializedRig.cpp =================================================================== --- trunk/source/main/physics/input_output/SerializedRig.cpp 2011-03-07 21:45:56 UTC (rev 1742) +++ trunk/source/main/physics/input_output/SerializedRig.cpp 2011-03-07 23:45:42 UTC (rev 1743) @@ -428,7 +428,7 @@ for(int i=0; i < BTS_END; i++) { // check for classical sections - if (!strncmp(c.line, truck_sections[i].name, strnlen(truck_sections[i].name, 255))) + if (!strcmp(c.line, truck_sections[i].name)) { foundSection = &truck_sections[i]; break; @@ -1141,6 +1141,7 @@ } //skip if a beam already exists + /* int i; for (i=0; i<free_beam; i++) { @@ -1150,6 +1151,7 @@ continue; } } + */ // FIXME: separate init_beam and setup_beam to be able to set all parameters after creation // this is just ugly: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ Rigsofrods-devel mailing list Rigsofrods-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel