Browse Source

fixtypos (#1053)

pull/1060/head
qndel 5 years ago committed by GitHub
parent
commit
ba37c8618f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      Source/loadsave.cpp
  2. 2
      structs.h

12
Source/loadsave.cpp

@ -396,14 +396,14 @@ static void LoadPlayer(int i)
tbuff += 1;
pPlayer->pOriginalCathedral = true;
}
tbuff += 2; // Avalible bytes
tbuff += 2; // Available bytes
CopyShort(tbuff, &pPlayer->wReflections);
tbuff += 14; // Avalible bytes
tbuff += 14; // Available bytes
CopyInt(tbuff, &pPlayer->pDiabloKillLevel);
CopyInt(tbuff, &pPlayer->pDifficulty);
CopyInt(tbuff, &pPlayer->pDamAcFlags);
tbuff += 20; // Avalible bytes
tbuff += 20; // Available bytes
// Omit pointer _pNData
// Omit pointer _pWData
@ -1263,14 +1263,14 @@ static void SavePlayer(int i)
CopyChar(&pPlayer->pBattleNet, tbuff);
CopyChar(&pPlayer->pManaShield, tbuff);
CopyChar(&pPlayer->pOriginalCathedral, tbuff);
tbuff += 2; // Avalible bytes
tbuff += 2; // Available bytes
CopyShort(&pPlayer->wReflections, tbuff);
tbuff += 14; // Avalible bytes
tbuff += 14; // Available bytes
CopyInt(&pPlayer->pDiabloKillLevel, tbuff);
CopyInt(&pPlayer->pDifficulty, tbuff);
CopyInt(&pPlayer->pDamAcFlags, tbuff);
tbuff += 20; // Avalible bytes
tbuff += 20; // Available bytes
// Omit pointer _pNData
// Omit pointer _pWData

2
structs.h

@ -217,7 +217,7 @@ typedef struct PlayerStruct {
char _pSplLvl[64];
uint64_t _pMemSpells; // Bitmask of learned spells
uint64_t _pAblSpells; // Bitmask of abilities
uint64_t _pScrlSpells; // Bitmask of spells avalible via scrolls
uint64_t _pScrlSpells; // Bitmask of spells available via scrolls
UCHAR _pSpellFlags;
int _pSplHotKey[4];
char _pSplTHotKey[4];

Loading…
Cancel
Save