diff options
author | orwell <orwell@bleipb.de> | 2024-07-20 18:02:33 +0200 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2024-07-20 18:02:33 +0200 |
commit | baa50c03920fd0a563fce09929f3d56c3374e8bd (patch) | |
tree | b7a8cf7b94952a7db823cab1de6860e57fd53c25 /advtrains_interlocking/signal_api.lua | |
parent | c145e5db7473a0baab6438d7c2ed9616948d8387 (diff) | |
download | advtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.tar.gz advtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.tar.bz2 advtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.zip |
ARS supports triggering distant signal, other bugfixes
Diffstat (limited to 'advtrains_interlocking/signal_api.lua')
-rw-r--r-- | advtrains_interlocking/signal_api.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_interlocking/signal_api.lua b/advtrains_interlocking/signal_api.lua index eddf9da..cede405 100644 --- a/advtrains_interlocking/signal_api.lua +++ b/advtrains_interlocking/signal_api.lua @@ -279,7 +279,7 @@ end function signal.get_aspect(pos) local aspt = signal.aspects[advtrains.encode_pos(pos)] local ma,dp = signal.get_aspect_internal(pos, aspt) - return ma, advtrains.decode_pos(dp) + return ma, dp and advtrains.decode_pos(dp) end local function cache_mainaspects(ndefat) |