diff options
| author | Y. Wang <y5nw@protonmail.com> | 2026-03-01 13:33:37 +0000 |
|---|---|---|
| committer | orwell <orwell@bleipb.de> | 2026-03-29 17:45:18 +0200 |
| commit | 625fd823c935ffe37ab62aa370587c20ef89cb9d (patch) | |
| tree | 1fc89e363dde3dc5a801ca8f847333fb3c4d82e9 /advtrains_line_automation/station_editor.lua | |
| parent | 31febe6fe193aa84a6ac4127e9f839cf6b5abc2b (diff) | |
Remove hardcoded uppercase conversion for destination display
The uppercase conversion function uses string.upper with a hardcoded
conversion table. Given Lua's lack of UTF-8-based string operation
functions, it is not hard to see how this is problematic.
Diffstat (limited to 'advtrains_line_automation/station_editor.lua')
| -rw-r--r-- | advtrains_line_automation/station_editor.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/advtrains_line_automation/station_editor.lua b/advtrains_line_automation/station_editor.lua index fccc357..a456c7e 100644 --- a/advtrains_line_automation/station_editor.lua +++ b/advtrains_line_automation/station_editor.lua @@ -582,8 +582,7 @@ local function get_all_linevars() for stn, stdata in pairs(advtrains.lines.stations) do for linevar, linevar_def in pairs(stdata.linevars or empty_table) do local line, stn = advtrains.lines.linevar_decompose(linevar) - local target_fs = F(advtrains.lines.get_line_description(linevar_def, {line_number = false, last_stop = true, last_stop_prefix = "", - last_stop_uppercase = false})) + local target_fs = F(advtrains.lines.get_line_description(linevar_def, {line_number = false, last_stop = true, last_stop_prefix = ""})) local status_fs if trains_by_linevar[linevar] ~= nil then status_fs = "#00ff00,"..S("in operation") @@ -613,7 +612,7 @@ end local function get_linevars_by_filter(stn_filter, track_filter) local result = {} local empty_table = {} - local line_description_options = {line_number = false, last_stop = true, last_stop_prefix = "", last_stop_uppercase = false} + local line_description_options = {line_number = false, last_stop = true, last_stop_prefix = ""} local trains_by_linevar = advtrains.lines.get_trains_by_linevar() assert(stn_filter) if track_filter == "" then |
