Browse Source

Revamp ini options and sync in multiplayer

[NetMsg]
F12=Now you DIE!
F11=Here's something for you.
F10=Follow me.
F9=I need help! Come Here!

[Game]
Speed=50
Fast Walk=1
Grab Input=0
Theo Quest=0
Cow Quest=0

[Audio]
Sound Volume=0
Music Volume=0
Walking Sound=1

[Graphics]
Fullscreen=1
Fit to Screen=1
Scaling Quality=2
Integer Scaling=0
Vertical Sync=1
Blended Transparency=1
Gamma Correction=100
Color Cycling=1

[Diablo]
Intro=0

[Hellfire]
Intro=0
SItem=

[Phone Book]
Entry1=127.0.0.1

[Network]
Bind Address=0.0.0.0
pull/1080/head
Anders Jenbo 5 years ago
parent
commit
f7eaa41d10
  1. 12
      SourceX/DiabloUI/selgame.cpp
  2. 2
      SourceX/DiabloUI/selgame.h
  3. 2
      SourceX/DiabloUI/selhero.cpp

12
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;

2
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);

2
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(

Loading…
Cancel
Save