mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-16 03:20:21 -07:00
Extend varp array to support cases where a server has >2500
This commit is contained in:
parent
1523a94221
commit
aa72ec12d2
15 changed files with 28 additions and 29 deletions
|
|
@ -1568,9 +1568,9 @@ public class Protocol {
|
|||
opcode = -1;
|
||||
return true;
|
||||
} else if (opcode == ServerProt.FORCE_VARP_REFRESH) {
|
||||
for (int i = 0; i < VarpDomain.varps.length; i++) {
|
||||
if (Static106.varp[i] != VarpDomain.varps[i]) {
|
||||
VarpDomain.varps[i] = Static106.varp[i];
|
||||
for (int i = 0; i < VarpDomain.activeVarps.length; i++) {
|
||||
if (VarpDomain.varp[i] != VarpDomain.activeVarps[i]) {
|
||||
VarpDomain.activeVarps[i] = VarpDomain.varp[i];
|
||||
Static85.refreshMagicVarp(i);
|
||||
VarpDomain.updatedVarps[VarpDomain.updatedVarpsWriterIndex++ & 0x1F] = i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue