fix error in real train index calculation

master
orwell96 2016-08-21 16:49:48 +02:00
parent 931aaf82c4
commit 4010825031
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ function advtrains.get_real_path_index(train, pit)
end
index=index-(pos_in_train_left/(train.path_dist[index-1] or 1))
else
index=index-(pos_in_train_left*(train.path_dist[math.floor(index-1)] or 1))
index=index-(pos_in_train_left/(train.path_dist[math.floor(index-1)] or 1))
end
return index
end