aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2017-01-02 13:49:20 +0100
committerorwell96 <orwell@bleipb.de>2017-01-02 13:49:20 +0100
commit8784ee41ddac2959c4a2aca6dd1a5e7570ad741b (patch)
tree1089b3c9266f34398b8a7ed006f36ff7dfa53bc6 /advtrains/trainlogic.lua
parent987cd5b7f0ef86884858a107cc915f548675f2a8 (diff)
downloadadvtrains-8784ee41ddac2959c4a2aca6dd1a5e7570ad741b.tar.gz
advtrains-8784ee41ddac2959c4a2aca6dd1a5e7570ad741b.tar.bz2
advtrains-8784ee41ddac2959c4a2aca6dd1a5e7570ad741b.zip
Do not duplicate definitions of 'print' in every file
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r--advtrains/trainlogic.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua
index 1050d62..9c93d96 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -1,12 +1,8 @@
--trainlogic.lua
--controls train entities stuff about connecting/disconnecting/colliding trains and other things
-local print=function(t, ...) minetest.log("action", table.concat({t, ...}, " ")) minetest.chat_send_all(table.concat({t, ...}, " ")) end
-local sid=function(id) return string.sub(id, -4) end
---local print=function() end
local benchmark=false
---printbm=function(str, t) print("[advtrains]"..str.." "..((os.clock()-t)*1000).."ms") end
local bm={}
local bmlt=0
local bmsteps=0