mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 05:11:29 +00:00
Removed server-side checksum of player profile
This commit is contained in:
parent
4658ad676f
commit
2f3cd45c4a
@ -11,6 +11,7 @@ Uleat: Extended server spellbook entries to RoF2 standard and added per-client r
|
|||||||
- Each client is still restricted to its spellbook capacity (400, 480, 480, 720, 720, 720 - respectively)
|
- Each client is still restricted to its spellbook capacity (400, 480, 480, 720, 720, 720 - respectively)
|
||||||
- Each client is restricted to its max supported spell id (9999, 15999, 23000, 28000, 45000, 45000 - respectively)
|
- Each client is restricted to its max supported spell id (9999, 15999, 23000, 28000, 45000, 45000 - respectively)
|
||||||
- Please report any abnormal behavior so it may be addressed
|
- Please report any abnormal behavior so it may be addressed
|
||||||
|
Uleat: Removed server-side checksum of player profile..wasted calculation since it's performed again in all translators
|
||||||
|
|
||||||
== 1/20/2019 ==
|
== 1/20/2019 ==
|
||||||
Uleat: Added 'spells' entry to EQDictionary
|
Uleat: Added 'spells' entry to EQDictionary
|
||||||
|
|||||||
@ -909,7 +909,7 @@ sed -e 's/_t//g' -e 's/MAX_AA/MAX_PP_AA_ARRAY/g' \
|
|||||||
|
|
||||||
struct PlayerProfile_Struct
|
struct PlayerProfile_Struct
|
||||||
{
|
{
|
||||||
/*0000*/ uint32 checksum; // Checksum from CRC32::SetEQChecksum
|
// /*0000*/ uint32 checksum; // Checksum from CRC32::SetEQChecksum
|
||||||
/*0004*/ char name[64]; // Name of player sizes not right
|
/*0004*/ char name[64]; // Name of player sizes not right
|
||||||
/*0068*/ char last_name[32]; // Last name of player sizes not right
|
/*0068*/ char last_name[32]; // Last name of player sizes not right
|
||||||
/*0100*/ uint32 gender; // Player Gender - 0 Male, 1 Female
|
/*0100*/ uint32 gender; // Player Gender - 0 Male, 1 Female
|
||||||
@ -1099,10 +1099,10 @@ struct PlayerProfile_Struct
|
|||||||
void SetPlayerProfileVersion(EQEmu::versions::MobVersion mob_version) { m_player_profile_version = EQEmu::versions::ValidateMobVersion(mob_version); }
|
void SetPlayerProfileVersion(EQEmu::versions::MobVersion mob_version) { m_player_profile_version = EQEmu::versions::ValidateMobVersion(mob_version); }
|
||||||
void SetPlayerProfileVersion(EQEmu::versions::ClientVersion client_version) { SetPlayerProfileVersion(EQEmu::versions::ConvertClientVersionToMobVersion(client_version)); }
|
void SetPlayerProfileVersion(EQEmu::versions::ClientVersion client_version) { SetPlayerProfileVersion(EQEmu::versions::ConvertClientVersionToMobVersion(client_version)); }
|
||||||
|
|
||||||
// private:
|
private:
|
||||||
// No need for gm flag since pp already has one
|
// No need for gm flag since pp already has one
|
||||||
// No need for lookup pointer since this struct is not tied to any one system
|
// No need for lookup pointer since this struct is not tied to any one system
|
||||||
EQEmu::versions::MobVersion m_player_profile_version; // kept public for now so checksum can calc sizeof (client_packet.cpp:1586)
|
EQEmu::versions::MobVersion m_player_profile_version;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1593,7 +1593,8 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
|
|||||||
m_pp.RestTimer = 0;
|
m_pp.RestTimer = 0;
|
||||||
|
|
||||||
/* This checksum should disappear once dynamic structs are in... each struct strategy will do it */ // looks to be in place now
|
/* This checksum should disappear once dynamic structs are in... each struct strategy will do it */ // looks to be in place now
|
||||||
CRC32::SetEQChecksum((unsigned char*)&m_pp, sizeof(PlayerProfile_Struct) - sizeof(m_pp.m_player_profile_version) - 4);
|
//CRC32::SetEQChecksum((unsigned char*)&m_pp, sizeof(PlayerProfile_Struct) - sizeof(m_pp.m_player_profile_version) - 4);
|
||||||
|
// m_pp.checksum = 0; // All server out-bound player profile packets are now translated - no need to waste cycles calculating this...
|
||||||
|
|
||||||
outapp = new EQApplicationPacket(OP_PlayerProfile, sizeof(PlayerProfile_Struct));
|
outapp = new EQApplicationPacket(OP_PlayerProfile, sizeof(PlayerProfile_Struct));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user