The TORCS Racing Board
Username: Password: Remember Me?
Lost Password Register
Author: dummy | Created: 2017-05-10 11:34:36
Subject: Bug in mouse_2017
Cubic.cpp:43
Set( x0, x0, s0, x1, y1, s1 );

should be:
Set( x0, y0, s0, x1, y1, s1 );
Last Edited: 2017-05-10 11:34:36 by dummy
    Author: firechief | Created: 2017-05-10 11:46:47
    Subject: Re: Bug in mouse_2017
    Same bug's in Axiom (no surprise there!)

    Thanks Danny :)

    Edit: I'm curious though, how on earth did you notice such an obscure bug?
    Last Edited: 2017-05-10 12:09:58 by firechief
      Author: dummy | Created: 2017-05-10 16:17:25
      Subject: Re: Bug in mouse_2017
      >how on earth did you notice such an obscure bug?
      I thought you would ask this question. Just checked mouse_2006. How on earth could this bug be so old and no one noticed?

      Well, I'm cleaning up my code. I used wdbees version of Tim's Cubic before and now decided to replace it with Tim's (don't ask why, maybe too much spare time). Then I raced a lap on Forza and the times didn't match up. This way I discovered that something is not right here ;)
      Last Edited: 2017-05-10 16:17:25 by dummy
        Author: firechief | Created: 2017-05-10 16:29:17
        Subject: Re: Bug in mouse_2017
        What's really odd is that I fixed it in axiom, and I can't see any difference in laptimes at all. You'd think there'd be _some_ change...

        Edit: That's because this method is never called in the mouse code. Instead, Cubic objects are only created using the constructor with no arguments, and the Set() method is called separately.
        Last Edited: 2017-05-10 17:02:02 by firechief
    Author: timfoden | Created: 2017-05-10 12:29:07
    Subject: Re: Bug in mouse_2017
    Thanks from me too! :)
    Last Edited: 2017-05-10 12:29:07 by timfoden