atc_reset(): Removed unused string parameter and also clear ATC autocouple flag (Cpl)
Fixes H#189 and H#190master
parent
78e0c650e3
commit
ef8391a60d
|
@ -93,6 +93,7 @@ function atc.train_reset_command(train, keep_tarvel)
|
||||||
train.atc_delay=nil
|
train.atc_delay=nil
|
||||||
train.atc_brake_target=nil
|
train.atc_brake_target=nil
|
||||||
train.atc_wait_finish=nil
|
train.atc_wait_finish=nil
|
||||||
|
train.atc_wait_autocouple=nil
|
||||||
train.atc_arrow=nil
|
train.atc_arrow=nil
|
||||||
if not keep_tarvel then
|
if not keep_tarvel then
|
||||||
train.tarvelocity=nil
|
train.tarvelocity=nil
|
||||||
|
|
|
@ -130,9 +130,8 @@ function r.fire_event(pos, evtdata, appr_internal)
|
||||||
get_rc = function()
|
get_rc = function()
|
||||||
return train.routingcode
|
return train.routingcode
|
||||||
end,
|
end,
|
||||||
atc_reset = function(cmd)
|
atc_reset = function()
|
||||||
if not train_id then return false end
|
if not train_id then return false end
|
||||||
assertt(cmd, "string")
|
|
||||||
advtrains.atc.train_reset_command(train)
|
advtrains.atc.train_reset_command(train)
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue