aboutsummaryrefslogtreecommitdiff
path: root/advtrains/pseudoload.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2016-12-31 15:16:19 +0100
committerorwell96 <orwell@bleipb.de>2016-12-31 15:16:19 +0100
commit987cd5b7f0ef86884858a107cc915f548675f2a8 (patch)
tree3db1bbcb3c730d3da9ed49d1bafb198142f9f973 /advtrains/pseudoload.lua
parentd08e202346192c50072450a3eaa3b28cad852b84 (diff)
downloadadvtrains-987cd5b7f0ef86884858a107cc915f548675f2a8.tar.gz
advtrains-987cd5b7f0ef86884858a107cc915f548675f2a8.tar.bz2
advtrains-987cd5b7f0ef86884858a107cc915f548675f2a8.zip
spawn couple on train collision
also fix empty trains hanging around for too long
Diffstat (limited to 'advtrains/pseudoload.lua')
-rw-r--r--advtrains/pseudoload.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/pseudoload.lua b/advtrains/pseudoload.lua
index 3f4f321..677cd14 100644
--- a/advtrains/pseudoload.lua
+++ b/advtrains/pseudoload.lua
@@ -176,7 +176,7 @@ function advtrains.reset_trackdb_position(pos)
if not advtrains.trackdb[rdp.y] then advtrains.trackdb[rdp.y]={} end
if not advtrains.trackdb[rdp.y][rdp.x] then advtrains.trackdb[rdp.y][rdp.x]={} end
advtrains.trackdb[rdp.y][rdp.x][rdp.z]=nil
- advtrains.get_rail_info_at(pos)--to restore it.
+ advtrains.get_rail_info_at(pos, advtrains.all_tracktypes)--to restore it.
end