RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
991 stars 175 forks source link

Fixed `forset` backwards compatibility #3054

Closed ohlidalp closed 1 year ago

ohlidalp commented 1 year ago

Fixes #3053

Reprint of code comments about forset parsing:

    // --------------------------------------------------------------------------------------------
    // BEWARE OF QUIRKS in the following code (they must be preserved for backwards compatibility):
    // - a space between the 'forset' keyword and arguments is optional.
    // - garbage characters anywhere on the line will silently add node 0 to the set. <<<========= THE NEW ONE!
    // - a separator at the end of line will silently add node 0 to the set.
    // --------------------------------------------------------------------------------------------