diff options
author | orwell96 <orwell@bleipb.de> | 2017-10-25 10:51:19 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2017-10-25 10:51:19 +0200 |
commit | 1f9a9062e022c401826155efd3cd45a479d50c15 (patch) | |
tree | 9b308cac57e0599f9e562ba0d628c0ad7d6c22aa /advtrains/init.lua | |
parent | c67770833b772e438f81ac80f10f1c46bbeebcfa (diff) | |
download | advtrains-1f9a9062e022c401826155efd3cd45a479d50c15.tar.gz advtrains-1f9a9062e022c401826155efd3cd45a479d50c15.tar.bz2 advtrains-1f9a9062e022c401826155efd3cd45a479d50c15.zip |
Replace many math.floor(x+0.5) calls (or math.floor calls that should be those) by custom atround() function
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r-- | advtrains/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua index 6f81a40..8991025 100644 --- a/advtrains/init.lua +++ b/advtrains/init.lua @@ -251,7 +251,7 @@ advtrains.avt_save = function(remove_players_from_wagons) local v=advtrains.merge_tables(train) --then invalidate if v.index then - v.restore_add_index=v.index-math.floor(v.index+0.5) + v.restore_add_index=v.index-math.floor(v.index+1) end v.path=nil v.path_dist=nil |