Browse Source

[hellfire] pfile_encode_hero

pull/970/head
Anders Jenbo 5 years ago
parent
commit
2de8282345
  1. 6
      Source/pfile.cpp

6
Source/pfile.cpp

@ -192,8 +192,14 @@ static void pfile_encode_hero(const PkPlayerStruct *pPack)
DWORD packed_len;
char password[16] = PASSWORD_SINGLE;
#ifdef HELLFIRE
DWORD size = 161;
if (gbMaxPlayers > 1)
GetComputerName(password, &size);
#else
if (gbMaxPlayers > 1)
strcpy(password, PASSWORD_MULTI);
#endif
packed_len = codec_get_encoded_len(sizeof(*pPack));
packed = (BYTE *)DiabloAllocPtr(packed_len);

Loading…
Cancel
Save