diff options
author | techniX <sergei.mozhaisky@gmail.com> | 2020-07-10 12:02:23 +0200 |
---|---|---|
committer | Gabriel PĂ©rez-Cerezo <gabriel@gpcf.eu> | 2020-07-10 12:02:23 +0200 |
commit | 74bf177cc850164a0a6c13a634e7da6410f9f73a (patch) | |
tree | daab6d26fe858a6db65e474b160f8daab5d01aad /advtrains/signals.lua | |
parent | f33bb563e78a62cc8fb2e1483a6cb9a2436b708a (diff) | |
download | advtrains-74bf177cc850164a0a6c13a634e7da6410f9f73a.tar.gz advtrains-74bf177cc850164a0a6c13a634e7da6410f9f73a.tar.bz2 advtrains-74bf177cc850164a0a6c13a634e7da6410f9f73a.zip |
optimize path_get_index_by_offset
Instead of calling path_get_adjacent twice (which calls path_get
twice, i.e. 4 times overall), we call path_get directly only 2 times
with min and max indices to generate all the path we need for
calculations.
Diffstat (limited to 'advtrains/signals.lua')
0 files changed, 0 insertions, 0 deletions