summaryrefslogtreecommitdiff
path: root/railtrack
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2016-01-16 18:03:13 +0000
committerstujones11 <stujones111@gmail.com>2016-01-16 18:07:46 +0000
commit620ca56b952037860b750e87e930754fd1d7b002 (patch)
tree60f8180891af42cfa29375126a5aa130858c5636 /railtrack
parentaee5c31362ca329ab71998d8c43588dba5113e04 (diff)
Fix regression with unloaded carts
Diffstat (limited to 'railtrack')
-rw-r--r--railtrack/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/railtrack/init.lua b/railtrack/init.lua
index 353249f..1906359 100644
--- a/railtrack/init.lua
+++ b/railtrack/init.lua
@@ -29,7 +29,7 @@ railtrack:register_rail("railtrack:powerrail", {
railtrack:set_acceleration(pos, 4)
end,
action_off = function(pos, node)
- railtrack:set_acceleration(pos, RAILTRACK_FRICTION_FLAT)
+ railtrack:set_acceleration(pos, nil)
end,
},
},
@@ -47,7 +47,7 @@ railtrack:register_rail("railtrack:brakerail", {
railtrack:set_acceleration(pos, -4)
end,
action_off = function(pos, node)
- railtrack:set_acceleration(pos, RAILTRACK_FRICTION_FLAT)
+ railtrack:set_acceleration(pos, nil)
end,
},
},