aboutsummaryrefslogtreecommitdiff
path: root/wagons.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-11-24 20:56:23 +0100
committerorwell96 <mono96.mml@gmail.com>2016-11-24 20:56:23 +0100
commit8c43f4d02693cddde0eb136ad9fe5d2f2bf210a4 (patch)
tree8a14840b8cd07637d96f81e4188cf5d3d0b3932f /wagons.lua
parent7eb17b323322aaf0c9d57c66079465a8df3bae10 (diff)
downloadadvtrains-8c43f4d02693cddde0eb136ad9fe5d2f2bf210a4.tar.gz
advtrains-8c43f4d02693cddde0eb136ad9fe5d2f2bf210a4.tar.bz2
advtrains-8c43f4d02693cddde0eb136ad9fe5d2f2bf210a4.zip
document new train controls and add combination for getting off
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