From f1eda7f572891c04eea6662a18c7626d9a46abef Mon Sep 17 00:00:00 2001 From: orwell Date: Tue, 17 Jun 2025 23:54:03 +0200 Subject: Revert back some of the stoprail strings to english and tag them with S --- advtrains_line_automation/ch_functions.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'advtrains_line_automation/ch_functions.lua') diff --git a/advtrains_line_automation/ch_functions.lua b/advtrains_line_automation/ch_functions.lua index 0b4514f..b9cd962 100644 --- a/advtrains_line_automation/ch_functions.lua +++ b/advtrains_line_automation/ch_functions.lua @@ -2,6 +2,18 @@ -- Functions from Cesky Hvozd utility libraries which are used in the code integrated from Singularis are now provided here. +--[[ +Jednoduchá funkce, která vyhodnotí condition jako podmínku +a podle výsledku vrátí buď true_result, nebo false_result. +]] +local function ifthenelse(condition, true_result, false_result) + if condition then + return true_result + else + return false_result + end +end + local ch_core = {} -- gives various info about a player. we return only what is relevant outside CH -- cgit v1.2.3