mirror of
https://github.com/bdnugget/APOS.git
synced 2026-11-07 08:47:27 +00:00
Overflow fixes - should help bot stability on crowded worlds
This commit is contained in:
1 parent
f91b4b9772
commit
38308f9c3c
2 files changed
+19
No files matched your search
@@ -29,6 +29,16 @@ public class Extension extends client implements IClient {
|
||||
private boolean fatigueTraining;
|
||||
|
||||
private Extension() {
|
||||
super();
|
||||
// Increase the size of buffers to prevent overflowing on
|
||||
// the incredibly crowded worlds of RSC Uranium.
|
||||
// XXX this should be fixed on the server too...
|
||||
super.mg = new ja(70000);
|
||||
// overhead icons...
|
||||
super.je = new int[512];
|
||||
super.pe = new int[512];
|
||||
super.jd = new int[512];
|
||||
super.ak = new int[512];
|
||||
}
|
||||
|
||||
public static void initHook() {
|
||||
|
||||
@@ -47,6 +47,15 @@ final class PaintListener implements IPaintListener {
|
||||
*/
|
||||
@Override
|
||||
public void onPaint() {
|
||||
|
||||
/*
|
||||
* renderbug workaround - prevent the texture cache index
|
||||
* from overflowing
|
||||
*/
|
||||
if (k.e > (1 << 29)) {
|
||||
k.e = 0;
|
||||
}
|
||||
|
||||
drawGradient();
|
||||
synchronized (dimension) {
|
||||
if (!resized) {
|
||||
|
||||
Reference in new issue
Block a user