From 5bc4ea0f0e659cce17021672a70b303916b08104 Mon Sep 17 00:00:00 2001 From: DakkJaniels <6080734+DakkJaniels@users.noreply.github.com> Date: Sun, 24 Jul 2022 15:50:53 -0400 Subject: [PATCH] Convert ZT gamename to lower case (#5110) --- Source/DiabloUI/selgame.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/DiabloUI/selgame.cpp b/Source/DiabloUI/selgame.cpp index 62afa31b3..e95b11e7e 100644 --- a/Source/DiabloUI/selgame.cpp +++ b/Source/DiabloUI/selgame.cpp @@ -602,6 +602,9 @@ void selgame_Password_Select(int /*value*/) if (selgame_selectedGame > 1) { if (provider == SELCONN_ZT) { + for (unsigned int i = 0; i < (sizeof(selgame_Ip) / sizeof(selgame_Ip[0])); i++) { + selgame_Ip[i] = (selgame_Ip[i] >= 'A' && selgame_Ip[i] <= 'Z') ? selgame_Ip[i] + 'a' - 'A' : selgame_Ip[i]; + } strcpy(sgOptions.Network.szPreviousZTGame, selgame_Ip); } else { strcpy(sgOptions.Network.szPreviousHost, selgame_Ip);