mLapDist sometimes reports negative value

Discussion in 'Plugins' started by Martin Vindis, Nov 30, 2016.

  1. Martin Vindis

    Martin Vindis Registered

    Joined:
    Apr 15, 2014
    Messages:
    144
    Likes Received:
    97
    I sometimes getting a negative value from mLapDist and this screws my plugin over a bit. This happened in a multi player practice session. Anyone knows why this would happen?
     
  2. PyrofrogSoftware

    PyrofrogSoftware Registered

    Joined:
    Jan 27, 2016
    Messages:
    42
    Likes Received:
    33
    I ended up here looking for this answer too.
    I figured out that the position is negative when the car is in the pits!
    std::abs sorted it out for me if you dont care about the pit info.
     
    The Iron Wolf likes this.

Share This Page