mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 23:51:28 +00:00
Fix RoF+ AA clientver bug
This commit is contained in:
parent
aacd288ad7
commit
c3c6d18979
@ -2852,7 +2852,7 @@ namespace RoF
|
|||||||
|
|
||||||
// Check clientver field to verify this AA should be sent for SoF
|
// Check clientver field to verify this AA should be sent for SoF
|
||||||
// clientver 1 is for all clients and 5 is for Live
|
// clientver 1 is for all clients and 5 is for Live
|
||||||
if (emu->clientver <= 5)
|
if (emu->clientver <= 7)
|
||||||
{
|
{
|
||||||
OUT(id);
|
OUT(id);
|
||||||
eq->unknown004 = 1;
|
eq->unknown004 = 1;
|
||||||
|
|||||||
@ -2941,7 +2941,7 @@ namespace RoF2
|
|||||||
|
|
||||||
// Check clientver field to verify this AA should be sent for SoF
|
// Check clientver field to verify this AA should be sent for SoF
|
||||||
// clientver 1 is for all clients and 5 is for Live
|
// clientver 1 is for all clients and 5 is for Live
|
||||||
if (emu->clientver <= 5)
|
if (emu->clientver <= 8)
|
||||||
{
|
{
|
||||||
OUT(id);
|
OUT(id);
|
||||||
eq->unknown004 = 1;
|
eq->unknown004 = 1;
|
||||||
|
|||||||
@ -1309,11 +1309,9 @@ void Client::SendAA(uint32 id, int seq) {
|
|||||||
SendAA_Struct* saa_next = nullptr;
|
SendAA_Struct* saa_next = nullptr;
|
||||||
saa_next = zone->FindAA(saa->sof_next_id);
|
saa_next = zone->FindAA(saa->sof_next_id);
|
||||||
|
|
||||||
// hard-coding values like this is dangerous and makes adding/updating clients a nightmare...
|
// this check should work as long as we continue to just add the clients and just increase
|
||||||
if (saa_next &&
|
// each number ....
|
||||||
(((GetClientVersionBit() == 4) && (saa_next->clientver > 4))
|
if (saa_next && static_cast<int>(GetClientVersion()) < saa_next->clientver - 1) {
|
||||||
|| ((GetClientVersionBit() == 8) && (saa_next->clientver > 5))
|
|
||||||
|| ((GetClientVersionBit() == 16) && (saa_next->clientver > 6)))){
|
|
||||||
saa->next_id=0xFFFFFFFF;
|
saa->next_id=0xFFFFFFFF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user