aboutsummaryrefslogtreecommitdiff
path: root/license.txt
diff options
context:
space:
mode:
authortechniX <sergei.mozhaisky@gmail.com>2020-07-10 12:02:23 +0200
committerGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2020-07-10 12:02:23 +0200
commit74bf177cc850164a0a6c13a634e7da6410f9f73a (patch)
treedaab6d26fe858a6db65e474b160f8daab5d01aad /license.txt
parentf33bb563e78a62cc8fb2e1483a6cb9a2436b708a (diff)
downloadadvtrains-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 'license.txt')
0 files changed, 0 insertions, 0 deletions
135 136 137 138 139 140 141 142
/*
Minetest-c55
Copyright (C) 2011 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.