Skip to content

Commit c509a78

Browse files
committed
refactor: renaming for minimap createMinimap and drawObject
1 parent 536e719 commit c509a78

File tree

4 files changed

+163
-159
lines changed

4 files changed

+163
-159
lines changed

src/main/java/org/runejs/client/Game.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ public static void setConfigToDefaults() {
644644
ChatBox.chatMessages[i] = null;
645645
GameInterface.itemCurrentlySelected = 0;
646646
MovedStatics.destinationX = 0;
647-
MovedStatics.anInt1985 = -1;
647+
Minimap.minimapLevel = -1;
648648
Player.npcCount = 0;
649649
SoundSystem.reset();
650650
widgetSelected = 0;
@@ -1920,9 +1920,9 @@ public static void method910() {
19201920
if(true) {
19211921
if (VertexNormal.lowMemory && MovedStatics.onBuildTimePlane != Player.worldLevel)
19221922
MovedStatics.method789(Player.localPlayer.pathY[0], MovedStatics.regionY, MovedStatics.regionX, Player.localPlayer.pathX[0], Player.worldLevel);
1923-
else if (MovedStatics.anInt1985 != Player.worldLevel) {
1924-
MovedStatics.anInt1985 = Player.worldLevel;
1925-
Minimap.method299(Player.worldLevel);
1923+
else if (Minimap.minimapLevel != Player.worldLevel) {
1924+
Minimap.minimapLevel = Player.worldLevel;
1925+
Minimap.createMinimap(Player.worldLevel);
19261926
}
19271927
}
19281928
}

src/main/java/org/runejs/client/MovedStatics.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ public class MovedStatics {
335335
*/
336336
public static int anInt2480 = 0;
337337
public static ImageRGB[] aClass40_Sub5_Sub14_Sub4Array2474;
338-
public static int anInt1985 = -1;
339338
public static int anInt1987 = 0;
340339
public static IndexedImage tabTopBack;
341340
/**
@@ -3734,7 +3733,7 @@ public static void method789(int chunkLocalX, int chunkY, int chunkX, int chunkL
37343733
if(obj.x < 0 || obj.y < 0 || obj.x >= 104 || obj.y >= 104)
37353734
obj.unlink();
37363735
}
3737-
anInt1985 = -1;
3736+
Minimap.minimapLevel = -1;
37383737
if(destinationX != 0) {
37393738
destinationX -= i_34_;
37403739
Game.destinationY -= i_35_;

src/main/java/org/runejs/client/cache/media/ImageRGB.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ public void method722(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5
782782
}
783783
}
784784

785-
public void method723() {
785+
public void prepareRasterizer() {
786786
Rasterizer.prepare(pixels, imageWidth, imageHeight);
787787
}
788788

0 commit comments

Comments
 (0)