aboutsummaryrefslogtreecommitdiff
path: root/advtrains/occupation.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/occupation.lua')
-rw-r--r--advtrains/occupation.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/advtrains/occupation.lua b/advtrains/occupation.lua
index 99de521..dd0235a 100644
--- a/advtrains/occupation.lua
+++ b/advtrains/occupation.lua
@@ -172,9 +172,9 @@ function o.check_collision(pos, train_id)
if ti~=train_id then
local idx = t[i+1]
local train = advtrains.trains[ti]
- atdebug("checking train",t[i],"index",idx,"<>",train.index,train.end_index)
+ --atdebug("checking train",t[i],"index",idx,"<>",train.index,train.end_index)
if idx >= train.end_index and idx <= train.index then
- atdebug("collides.")
+ --atdebug("collides.")
return true
end
end
@@ -190,7 +190,7 @@ end
function o.get_occupations(train, index)
local ppos, ontrack = advtrains.path_get(train, index)
if not ontrack then
- atdebug("Train",train.id,"get_occupations requested off-track",index)
+ atwarn("Train",train.id,"get_occupations requested off-track",index)
return {}, ppos
end
local pos = advtrains.round_vector_floor_y(ppos)