diff options
author | orwell96 <orwell@bleipb.de> | 2018-06-20 20:13:12 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-06-20 20:13:12 +0200 |
commit | 5992618ee837351124f59c1c0289391a9d501ade (patch) | |
tree | 08d70511e7beae7f4a0ee0c1e8f92dd412a5234f /advtrains | |
parent | 65675664e3cdf3328b89b4bdc22cc07c21be3a56 (diff) | |
download | advtrains-5992618ee837351124f59c1c0289391a9d501ade.tar.gz advtrains-5992618ee837351124f59c1c0289391a9d501ade.tar.bz2 advtrains-5992618ee837351124f59c1c0289391a9d501ade.zip |
Add Track Circuit Breaks (TCBs), Database and Track Circuit Setup
Does not get saved yet.
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/helpers.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/advtrains/helpers.lua b/advtrains/helpers.lua index ce059de..2160444 100644 --- a/advtrains/helpers.lua +++ b/advtrains/helpers.lua @@ -334,4 +334,8 @@ function advtrains.random_id() end
return idst
end
+-- Shorthand for pos_to_string and round_vector_floor_y
+function advtrains.roundfloorpts(pos)
+ return minetest.pos_to_string(advtrains.round_vector_floor_y(pos))
+end
|