Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple start positions
12-08-2006, 07:22 PM,
#12
 
alex25 Wrote:there is a little bug, such that start position 0 is always at 0,0,0 and all the other start positions get added after that.
i think i know where the problem is. in track.cpp line 505 there is the following code:
Code:
if (index == 0) //still using the old format
        {
                trackconfig.GetParam("start position", tvert);
                sl.Set(tvert);
                SetStart(sl);
        }
sice we are creating a new track the index is zero so we end up inserting a false start (which happens to be (0,0,0) but since tvert is not initialized it can be anything). it think the code should be:
Code:
if (index == 0) //still using the old format
        {
                if (trackconfig.GetParam("start position", tvert))
                {
                        sl.Set(tvert);
                        SetStart(sl);
                }
        }

--alex--
Reply


Messages In This Thread
Multiple start positions - by rookie1 - 11-30-2006, 10:10 AM
[No subject] - by thelusiv - 11-30-2006, 12:04 PM
[No subject] - by rookie1 - 12-02-2006, 02:56 AM
[No subject] - by thelusiv - 12-02-2006, 11:42 AM
[No subject] - by alex25 - 12-02-2006, 12:46 PM
[No subject] - by thelusiv - 12-02-2006, 05:57 PM
[No subject] - by alex25 - 12-02-2006, 06:47 PM
[No subject] - by thelusiv - 12-02-2006, 09:30 PM
[No subject] - by alex25 - 12-02-2006, 10:06 PM
[No subject] - by rookie1 - 12-02-2006, 10:46 PM
[No subject] - by alex25 - 12-08-2006, 06:57 PM
[No subject] - by alex25 - 12-08-2006, 07:22 PM
[No subject] - by alex25 - 12-08-2006, 07:30 PM
[No subject] - by rookie1 - 12-10-2006, 06:01 AM
[No subject] - by cotharyus - 12-10-2006, 08:59 AM
[No subject] - by thelusiv - 12-12-2006, 07:48 AM
[No subject] - by rookie1 - 12-12-2006, 08:29 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)