1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00
Дополнительные проверки в БМЦИКе
This commit is contained in:
kosmik641
2023-02-24 18:34:35 +03:00
parent c06ccbe776
commit a4f5eefe7f

View File

@@ -1266,7 +1266,7 @@ function TRAIN_SYSTEM:CANUpdate()
end
bitText = bitText..Format("%%yСледующая станция\n%%y%s",sTblNext[2])
if sTblNext.right_doors then
if sTblNext and sTblNext.right_doors then
bitText = bitText..",\n%%yвыход\n%%yна правую сторону.\n"
bitLoop = bitLoop + 2
else
@@ -1291,7 +1291,7 @@ function TRAIN_SYSTEM:CANUpdate()
bitText = bitText..".\n"
end
if sTblPrev.messagedep then
if sTblPrev and sTblPrev.messagedep then
bitLoop = bitLoop + #string.Explode("\n",sTblPrev.messagedep)
bitText = bitText..(sTblPrev.messagedep).."\n"
end