Revert "Added stop and reverse rail"
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Wed, 18 Jan 2017 21:47:26 +0000 (22:47 +0100)
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Wed, 18 Jan 2017 21:47:26 +0000 (22:47 +0100)
This reverts commit 633d514f5b63d28d80a5c0981ee3e99b61899c41.

Conflicts:
tracks.lua

textures/advtrains_dtrack_rail_stop.png [deleted file]
textures/advtrains_dtrack_stop_placer.png [deleted file]
tracks.lua

diff --git a/textures/advtrains_dtrack_rail_stop.png b/textures/advtrains_dtrack_rail_stop.png
deleted file mode 100644 (file)
index 3cfd75f..0000000
Binary files a/textures/advtrains_dtrack_rail_stop.png and /dev/null differ
diff --git a/textures/advtrains_dtrack_stop_placer.png b/textures/advtrains_dtrack_stop_placer.png
deleted file mode 100644 (file)
index 82622db..0000000
Binary files a/textures/advtrains_dtrack_stop_placer.png and /dev/null differ
index ffca506..99dbb27 100644 (file)
@@ -584,31 +584,6 @@ for _,rot in ipairs({"", "_30", "_45", "_60"}) do
        minetest.register_alias("advtrains:dtrack_bumper"..rot, "advtrains:dtrack_bumper_st"..rot)\r
 end\r
 \r
-advtrains.register_tracks("default", {\r
-               nodename_prefix="advtrains:dtrack_stop",\r
-               texture_prefix="advtrains_dtrack_stop",\r
-               models_prefix="advtrains_dtrack",\r
-               models_suffix=".b3d",\r
-               shared_texture="advtrains_dtrack_rail_stop.png",\r
-               description="Stop and reverse rail",\r
-               formats={},\r
-               get_additional_definiton = function(def, preset, suffix, rotation)\r
-                       return {\r
-                               advtrains = {\r
-                                       on_train_enter=function(pos, train_id)\r
-                                          local train = advtrains.trains[train_id];\r
-                                          local endsp = train.tarvelocity;\r
-                                          train.tarvelocity = 0;\r
-                                          train.velocity = 0;\r
-                                          minetest.swap_node(pos, {name="advtrains:dtrack".."_"..suffix..rotation, param2=minetest.get_node(pos).param2})\r
-                                          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);\r
-                                       end\r
-                               }\r
-                       }\r
-               end\r
-}, t_30deg_straightonly)\r
-\r
-\r
 if mesecon then\r
        advtrains.register_tracks("default", {\r
                nodename_prefix="advtrains:dtrack_detector_off",\r