diff --git a/SourceX/DiabloUI/selgame.cpp b/SourceX/DiabloUI/selgame.cpp index 1769a1a0f..eb2e54974 100644 --- a/SourceX/DiabloUI/selgame.cpp +++ b/SourceX/DiabloUI/selgame.cpp @@ -18,8 +18,8 @@ bool selgame_enteringGame; int selgame_selectedGame; bool selgame_endMenu; int *gdwPlayerId; -int gbDifficulty; -int gbTickRate; +int nDifficulty; +int nTickRate; int heroLevel; static _SNETPROGRAMDATA *m_client_info; @@ -243,7 +243,7 @@ void selgame_Diff_Select(int value) return; } - gbDifficulty = value; + nDifficulty = value; if (!selhero_isMultiPlayer) { selhero_endMenu = true; @@ -338,7 +338,7 @@ void selgame_Speed_Esc() void selgame_Speed_Select(int value) { - gbTickRate = vecSelGameDlgItems[value]->m_value; + nTickRate = vecSelGameDlgItems[value]->m_value; if (provider == SELCONN_LOOPBACK) { selgame_Password_Select(0); @@ -428,8 +428,8 @@ void selgame_Password_Select(int value) } GameData *data = m_client_info->initdata; - data->nDifficulty = gbDifficulty; - data->nTickRate = sgOptions.nTickRate; + data->nDifficulty = nDifficulty; + data->nTickRate = nTickRate; data->bJogInTown = sgOptions.bJogInTown; data->bTheoQuest = sgOptions.bTheoQuest; data->bCowQuest = sgOptions.bCowQuest; diff --git a/SourceX/DiabloUI/selgame.h b/SourceX/DiabloUI/selgame.h index 25a6a3d29..a19e50da9 100644 --- a/SourceX/DiabloUI/selgame.h +++ b/SourceX/DiabloUI/selgame.h @@ -2,7 +2,7 @@ namespace dvl { -extern int gbDifficulty; +extern int nDifficulty; void selgame_GameSelection_Init(); void selgame_GameSelection_Focus(int value); diff --git a/SourceX/DiabloUI/selhero.cpp b/SourceX/DiabloUI/selhero.cpp index 30652c5a0..0ceea9c34 100644 --- a/SourceX/DiabloUI/selhero.cpp +++ b/SourceX/DiabloUI/selhero.cpp @@ -539,7 +539,7 @@ void UiSelHeroSingDialog( { selhero_isMultiPlayer = false; UiSelHeroDialog(fninfo, fncreate, fnstats, fnremove, dlgresult, name); - *difficulty = gbDifficulty; + *difficulty = nDifficulty; } void UiSelHeroMultDialog(