1. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

[BUG FIX]: Parts dropdown resets car even if you don't change the value

Discussion in 'General Discussion' started by Fireboyd78, Jun 24, 2014.

  1. Fireboyd78

    Fireboyd78
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    85
    I'm sure I'm not the only one here who's been quite annoyed by the fact that selecting a part dropdown and not changing anything results in the car being reset. After a lot of tireless debugging, I finally fixed it.

    'art/gui/LuaChooser.gui', line ~78:

    Code:
       %this.borderSize    = 5;
       %this.currentValues = new ArrayObject(); // this is the troublemaker!
    } else if (%this.numControls > 0)
    {
       %this.reset();
    }
    %this.mapValues = new ArrayObject();
    %this.dlgs = new ArrayObject();
    The fix:

    Code:
       %this.borderSize    = 5;
    } else if (%this.numControls > 0)
    {
       %this.reset();
    }
    %this.currentValues = new ArrayObject(); // move it here for profit!
    %this.mapValues = new ArrayObject();
    %this.dlgs = new ArrayObject();
    I have attached a fix below. Enjoy!
     

    Attached Files:

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice