aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textures/advtrains_dtrack_cr.pngbin384 -> 0 bytes
-rw-r--r--textures/advtrains_dtrack_cr_30.pngbin317 -> 0 bytes
-rw-r--r--textures/advtrains_dtrack_cr_45.pngbin441 -> 0 bytes
-rw-r--r--textures/advtrains_dtrack_cr_60.pngbin550 -> 0 bytes
-rw-r--r--textures/advtrains_dtrack_st.pngbin206 -> 0 bytes
-rw-r--r--textures/advtrains_dtrack_st_30.pngbin406 -> 0 bytes
-rw-r--r--textures/advtrains_dtrack_st_45.pngbin261 -> 0 bytes
-rw-r--r--textures/advtrains_dtrack_st_60.pngbin365 -> 0 bytes
-rw-r--r--textures/advtrains_dtrack_vst1.pngbin511 -> 0 bytes
-rw-r--r--textures/advtrains_dtrack_vst2.pngbin554 -> 0 bytes
-rw-r--r--textures/advtrains_track_vert1.pngbin1777 -> 0 bytes
-rw-r--r--textures/advtrains_track_vert2.pngbin2012 -> 0 bytes
-rw-r--r--textures/larger rails.pngbin81337 -> 0 bytes
-rw-r--r--wagons.lua9
14 files changed, 7 insertions, 2 deletions
diff --git a/textures/advtrains_dtrack_cr.png b/textures/advtrains_dtrack_cr.png
deleted file mode 100644
index c6b7c25..0000000
--- a/textures/advtrains_dtrack_cr.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_dtrack_cr_30.png b/textures/advtrains_dtrack_cr_30.png
deleted file mode 100644
index 510b4b6..0000000
--- a/textures/advtrains_dtrack_cr_30.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_dtrack_cr_45.png b/textures/advtrains_dtrack_cr_45.png
deleted file mode 100644
index 95e2460..0000000
--- a/textures/advtrains_dtrack_cr_45.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_dtrack_cr_60.png b/textures/advtrains_dtrack_cr_60.png
deleted file mode 100644
index 14d05eb..0000000
--- a/textures/advtrains_dtrack_cr_60.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_dtrack_st.png b/textures/advtrains_dtrack_st.png
deleted file mode 100644
index ae1b95e..0000000
--- a/textures/advtrains_dtrack_st.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_dtrack_st_30.png b/textures/advtrains_dtrack_st_30.png
deleted file mode 100644
index 1d52f22..0000000
--- a/textures/advtrains_dtrack_st_30.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_dtrack_st_45.png b/textures/advtrains_dtrack_st_45.png
deleted file mode 100644
index f4ccfef..0000000
--- a/textures/advtrains_dtrack_st_45.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_dtrack_st_60.png b/textures/advtrains_dtrack_st_60.png
deleted file mode 100644
index f34180d..0000000
--- a/textures/advtrains_dtrack_st_60.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_dtrack_vst1.png b/textures/advtrains_dtrack_vst1.png
deleted file mode 100644
index 718a043..0000000
--- a/textures/advtrains_dtrack_vst1.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_dtrack_vst2.png b/textures/advtrains_dtrack_vst2.png
deleted file mode 100644
index 7de8d44..0000000
--- a/textures/advtrains_dtrack_vst2.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_track_vert1.png b/textures/advtrains_track_vert1.png
deleted file mode 100644
index ce7c31d..0000000
--- a/textures/advtrains_track_vert1.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_track_vert2.png b/textures/advtrains_track_vert2.png
deleted file mode 100644
index 7bc7bae..0000000
--- a/textures/advtrains_track_vert2.png
+++ /dev/null
Binary files differ
diff --git a/textures/larger rails.png b/textures/larger rails.png
deleted file mode 100644
index c6c4b7f..0000000
--- a/textures/larger rails.png
+++ /dev/null
Binary files differ
diff --git a/wagons.lua b/wagons.lua
index a82bde2..8348353 100644
--- a/wagons.lua
+++ b/wagons.lua
@@ -257,18 +257,23 @@ function wagon:on_step(dtime)
for seatno, seat in ipairs(self.seats) do
if seat.driving_ctrl_access then
local driver=self.seatp[seatno] and minetest.get_player_by_name(self.seatp[seatno])
+ local get_off_pressed=false
if driver and driver:get_player_control_bits()~=self.old_player_control_bits then
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)
+ get_off_pressed=true
end
self.old_player_control_bits=driver:get_player_control_bits()
end
if driver then
- advtrains.update_driver_hud(driver:get_player_name(), self:train(), self.wagon_flipped)
+ if get_off_pressed then
+ self:get_off(seatno)
+ else
+ advtrains.update_driver_hud(driver:get_player_name(), self:train(), self.wagon_flipped)
+ end
end
end
end