diff options
author | orwell96 <orwell@bleipb.de> | 2017-12-18 23:20:29 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2017-12-18 23:20:29 +0100 |
commit | 09838252fe11672d89eb00d1da13b15a293ad230 (patch) | |
tree | f081504a9a6208541834759572ddf1a4a8b64b3c /advtrains/trainlogic.lua | |
parent | 46c4447da089146c662f217bf3269d78d4c462c2 (diff) | |
download | advtrains-09838252fe11672d89eb00d1da13b15a293ad230.tar.gz advtrains-09838252fe11672d89eb00d1da13b15a293ad230.tar.bz2 advtrains-09838252fe11672d89eb00d1da13b15a293ad230.zip |
Do not spam the server chat with messages from /at_sync_ndb and trains going off_track
The off-track warning has moved into the info text of wagons
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r-- | advtrains/trainlogic.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index 76b0d1d..d98c9e8 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -252,29 +252,29 @@ function advtrains.train_step_a(id, train, dtime) if front_off_track and back_off_track then--allow movement in both directions if train.tarvelocity>1 then train.tarvelocity=1 - atwarn("Train",t_info,"is off track at both ends. Clipping velocity to 1") + atprint("Train",t_info,"is off track at both ends. Clipping velocity to 1") pprint=true end elseif front_off_track then--allow movement only backward if train.movedir==1 and train.tarvelocity>0 then train.tarvelocity=0 - atwarn("Train",t_info,"is off track. Trying to drive further out. Velocity clipped to 0") + atprint("Train",t_info,"is off track. Trying to drive further out. Velocity clipped to 0") pprint=true end if train.movedir==-1 and train.tarvelocity>1 then train.tarvelocity=1 - atwarn("Train",t_info,"is off track. Velocity clipped to 1") + atprint("Train",t_info,"is off track. Velocity clipped to 1") pprint=true end elseif back_off_track then--allow movement only forward if train.movedir==-1 and train.tarvelocity>0 then train.tarvelocity=0 - atwarn("Train",t_info,"is off track. Trying to drive further out. Velocity clipped to 0") + atprint("Train",t_info,"is off track. Trying to drive further out. Velocity clipped to 0") pprint=true end if train.movedir==1 and train.tarvelocity>1 then train.tarvelocity=1 - atwarn("Train",t_info,"is off track. Velocity clipped to 1") + atprint("Train",t_info,"is off track. Velocity clipped to 1") pprint=true end end |