aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-01-18 22:47:26 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-01-18 22:47:26 +0100
commit0030409dd34f611b90861a528d6735a44dd663f2 (patch)
tree734fb3952b601b83e63f9c7a1c917e74b2cdd77e
parent176ee0627ebc397c60650fc5b059829788fe3cdc (diff)
downloadadvtrains-0030409dd34f611b90861a528d6735a44dd663f2.tar.gz
advtrains-0030409dd34f611b90861a528d6735a44dd663f2.tar.bz2
advtrains-0030409dd34f611b90861a528d6735a44dd663f2.zip
Revert "Added stop and reverse rail"
This reverts commit 633d514f5b63d28d80a5c0981ee3e99b61899c41. Conflicts: tracks.lua
-rw-r--r--textures/advtrains_dtrack_rail_stop.pngbin2860 -> 0 bytes
-rw-r--r--textures/advtrains_dtrack_stop_placer.pngbin280 -> 0 bytes
-rw-r--r--tracks.lua25
3 files changed, 0 insertions, 25 deletions
diff --git a/textures/advtrains_dtrack_rail_stop.png b/textures/advtrains_dtrack_rail_stop.png
deleted file mode 100644
index 3cfd75f..0000000
--- a/textures/advtrains_dtrack_rail_stop.png
+++ /dev/null
Binary files differ
diff --git a/textures/advtrains_dtrack_stop_placer.png b/textures/advtrains_dtrack_stop_placer.png
deleted file mode 100644
index 82622db..0000000
--- a/textures/advtrains_dtrack_stop_placer.png
+++ /dev/null
Binary files differ
diff --git a/tracks.lua b/tracks.lua
index ffca506..99dbb27 100644
--- a/tracks.lua
+++ b/tracks.lua
@@ -584,31 +584,6 @@ for _,rot in ipairs({"", "_30", "_45", "_60"}) do
minetest.register_alias("advtrains:dtrack_bumper"..rot, "advtrains:dtrack_bumper_st"..rot)
end
-advtrains.register_tracks("default", {
- nodename_prefix="advtrains:dtrack_stop",
- texture_prefix="advtrains_dtrack_stop",
- models_prefix="advtrains_dtrack",
- models_suffix=".b3d",
- shared_texture="advtrains_dtrack_rail_stop.png",
- description="Stop and reverse rail",
- formats={},
- get_additional_definiton = function(def, preset, suffix, rotation)
- return {
- advtrains = {
- on_train_enter=function(pos, train_id)
- local train = advtrains.trains[train_id];
- local endsp = train.tarvelocity;
- train.tarvelocity = 0;
- train.velocity = 0;
- minetest.swap_node(pos, {name="advtrains:dtrack".."_"..suffix..rotation, param2=minetest.get_node(pos).param2})
- minetest.after(10,function(t,sp,pos) train.movedir = -train.movedir; t.tarvelocity=sp; minetest.swap_node(pos, {name="advtrains:dtrack_stop".."_"..suffix..rotation, param2=minetest.get_node(pos).param2}); end, train, endsp,pos);
- end
- }
- }
- end
-}, t_30deg_straightonly)
-
-
if mesecon then
advtrains.register_tracks("default", {
nodename_prefix="advtrains:dtrack_detector_off",