aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trackdb_legacy.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2025-01-07 23:29:53 +0100
committerorwell <orwell@bleipb.de>2025-01-07 23:29:53 +0100
commit49d177d82cb09d19e7a9f5731e316d1079546b28 (patch)
tree566224ad4b1870eb29ad0aeffd3e8295eefc9bf7 /advtrains/trackdb_legacy.lua
parentd42afaf9594fefbdf8d0828d43ba7091115bbfd1 (diff)
downloadadvtrains-49d177d82cb09d19e7a9f5731e316d1079546b28.tar.gz
advtrains-49d177d82cb09d19e7a9f5731e316d1079546b28.tar.bz2
advtrains-49d177d82cb09d19e7a9f5731e316d1079546b28.zip
Remove unused source files (parts of ywang's original distant signal implementation & old track registration)
Diffstat (limited to 'advtrains/trackdb_legacy.lua')
-rw-r--r--advtrains/trackdb_legacy.lua27
1 files changed, 0 insertions, 27 deletions
diff --git a/advtrains/trackdb_legacy.lua b/advtrains/trackdb_legacy.lua
deleted file mode 100644
index 99349e8..0000000
--- a/advtrains/trackdb_legacy.lua
+++ /dev/null
@@ -1,27 +0,0 @@
---trackdb_legacy.lua
---loads the (old) track database. the only use for this is to provide data for rails that haven't been written into the ndb database.
---nothing will be saved.
---if the user thinks that he has loaded every track in his world at least once, he can delete the track database.
-
---trackdb[[y][x][z]={conn1, conn2, rely1, rely2, railheight}
-
-
---trackdb keeps its own save file.
-advtrains.fpath_tdb=minetest.get_worldpath().."/advtrains_trackdb2"
-local file, err = io.open(advtrains.fpath_tdb, "r")
-if not file then
- atprint("Not loading a trackdb file.")
-else
- local tbl = minetest.deserialize(file:read("*a"))
- if type(tbl) == "table" then
- advtrains.trackdb=tbl
- atprint("Loaded trackdb file.")
- end
- file:close()
-end
-
-
-
-
-
-