CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
569 stars 85 forks source link

Incorrect segment id for direction calculations #1606

Closed krzychu124 closed 2 years ago

krzychu124 commented 2 years ago

Fixed the code since it does not make any sense when node id was not passed as argument - it suppose to calculate the id by taking shared node - ID 0 is always reserved and used as "Empty/Invalid".

That method is currently used in two places in both cases we pass node Id so this change doesn't really improve anything but will prevent bugs if someone try to use it without explicitly passing the node id.