Browse Source

🐛 Only load hotkeys on new game

pull/1181/head
Anders Jenbo 5 years ago
parent
commit
8e8e31627f
  1. 2
      Source/diablo.cpp
  2. 2
      Source/player.cpp

2
Source/diablo.cpp

@ -1842,8 +1842,6 @@ void LoadGameLevel(BOOL firstflag, int lvldir)
dFlags[i][j] |= BFLAG_LIT;
}
if (!gbVanilla)
LoadHotkeys();
InitTowners();
InitItems();
InitMissiles();

2
Source/player.cpp

@ -988,6 +988,8 @@ void InitPlayer(int pnum, BOOL FirstTime)
if (FirstTime) {
plr[pnum]._pRSplType = RSPLTYPE_INVALID;
plr[pnum]._pRSpell = SPL_INVALID;
if (pnum == myplr)
LoadHotkeys();
plr[pnum]._pSBkSpell = SPL_INVALID;
plr[pnum]._pSpell = plr[pnum]._pRSpell;
plr[pnum]._pSplType = plr[pnum]._pRSplType;

Loading…
Cancel
Save