aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
diff options
context:
space:
mode:
authorMaverick2797 <git.maverick2797@gmail.com>2021-10-31 11:42:31 +0800
committerGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2021-11-09 21:45:33 +0100
commit43c85ab8cf0b120b3ff137c5328f0128dc4d9a9e (patch)
tree5898b032f96bd0c36084e95c8e2168e902ca445c /advtrains_luaautomation
parent00d12120b9dd3be2ccb5e4cde2fea826c4d5d453 (diff)
downloadadvtrains-43c85ab8cf0b120b3ff137c5328f0128dc4d9a9e.tar.gz
advtrains-43c85ab8cf0b120b3ff137c5328f0128dc4d9a9e.tar.bz2
advtrains-43c85ab8cf0b120b3ff137c5328f0128dc4d9a9e.zip
readme atc_set_ars_disable typo
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r--[-rwxr-xr-x]advtrains_luaautomation/README.md4
-rw-r--r--[-rwxr-xr-x]advtrains_luaautomation/atc_rail.lua0
2 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_luaautomation/README.md b/advtrains_luaautomation/README.md
index de4be3b..88fc1ef 100755..100644
--- a/advtrains_luaautomation/README.md
+++ b/advtrains_luaautomation/README.md
@@ -316,10 +316,10 @@ Deprecated:
#### Interlocking
This additional function is available when advtrains_interlocking is enabled:
- - `atc_set_disable_ars(boolean)`
+ - `atc_set_ars_disable(boolean)`
Disables (true) or enables (false) the use of ARS for this train. The train will not trigger ARS (automatic route setting) on signals then.
- Note: If you want to disable ARS from an approach callback, the call to `atc_set_disable_ars(true)` *must* happen during the approach callback, and may not be deferred to an interrupt(). Else the train might trigger an ARS before the interrupt fires.
+ Note: If you want to disable ARS from an approach callback, the call to `atc_set_ars_disable(true)` *must* happen during the approach callback, and may not be deferred to an interrupt(). Else the train might trigger an ARS before the interrupt fires.
#### Approach callbacks
The LuaATC interface provides a way to hook into the approach callback system, which is for example used in the TSR rails (provided by advtrains_interlocking) or the station tracks (provided by advtrains_lines). However, for compatibility reasons, this behavior needs to be explicitly enabled.
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua
index 6c157e3..6c157e3 100755..100644
--- a/advtrains_luaautomation/atc_rail.lua
+++ b/advtrains_luaautomation/atc_rail.lua