Browse Source

Convert ZT gamename to lower case (#5110)

pull/5113/head
DakkJaniels 4 years ago committed by GitHub
parent
commit
163ea36fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Source/DiabloUI/selgame.cpp

3
Source/DiabloUI/selgame.cpp

@ -613,6 +613,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);

Loading…
Cancel
Save