aboutsummaryrefslogtreecommitdiff
path: root/wagons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'wagons.lua')
-rw-r--r--wagons.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/wagons.lua b/wagons.lua
index 296bc54..a5734d6 100644
--- a/wagons.lua
+++ b/wagons.lua
@@ -261,6 +261,9 @@ function wagon:on_step(dtime)
local pc=driver:get_player_control()
advtrains.on_control_change(pc, self:train(), self.wagon_flipped)
+ if pc.aux1 and pc.sneak then
+ self:get_off(seatno)
+ end
self.old_player_control_bits=driver:get_player_control_bits()
end