@@ -606,11 +606,11 @@ public static void renderFlames() {
606
606
if (MovedStatics .anInt2613 > 0 ) {
607
607
for (int i = 0 ; i < 256 ; i ++) {
608
608
if (MovedStatics .anInt2613 > 768 )
609
- MovedStatics .anIntArray1013 [i ] = MovedStatics .method614 (Class51 .anIntArray1198 [i ], SpotAnim .anIntArray3248 [i ], -MovedStatics .anInt2613 + 1024 );
609
+ MovedStatics .anIntArray1013 [i ] = MovedStatics .method614 (Class51 .anIntArray1198 [i ], MovedStatics .anIntArray3248 [i ], -MovedStatics .anInt2613 + 1024 );
610
610
else if (MovedStatics .anInt2613 > 256 )
611
- MovedStatics .anIntArray1013 [i ] = SpotAnim .anIntArray3248 [i ];
611
+ MovedStatics .anIntArray1013 [i ] = MovedStatics .anIntArray3248 [i ];
612
612
else
613
- MovedStatics .anIntArray1013 [i ] = MovedStatics .method614 (SpotAnim .anIntArray3248 [i ], Class51 .anIntArray1198 [i ], -MovedStatics .anInt2613 + 256 );
613
+ MovedStatics .anIntArray1013 [i ] = MovedStatics .method614 (MovedStatics .anIntArray3248 [i ], Class51 .anIntArray1198 [i ], -MovedStatics .anInt2613 + 256 );
614
614
}
615
615
} else {
616
616
System .arraycopy (Class51 .anIntArray1198 , 0 , MovedStatics .anIntArray1013 , 0 , 256 );
@@ -819,9 +819,9 @@ public static void setConfigToDefaults() {
819
819
820
820
public static void method353 () {
821
821
MovedStatics .anInt2628 ++;
822
- SpotAnim . renderPlayers (0 , true );
822
+ renderPlayers (0 , true );
823
823
renderNPCs (true );
824
- SpotAnim . renderPlayers (0 , false );
824
+ renderPlayers (0 , false );
825
825
renderNPCs (false );
826
826
MovedStatics .renderProjectiles ();
827
827
MovedStatics .renderSpotAnims ();
@@ -1876,7 +1876,7 @@ private static void method947(int arg0) {
1876
1876
}
1877
1877
}
1878
1878
1879
- public static void renderNPCs (boolean arg0 ) {
1879
+ private static void renderNPCs (boolean arg0 ) {
1880
1880
for (int i = 0 ; Player .npcCount > i ; i ++) {
1881
1881
Npc npc = Player .npcs [Player .npcIds [i ]];
1882
1882
int i_15_ = 536870912 + (Player .npcIds [i ] << 14 );
@@ -1899,6 +1899,53 @@ public static void renderNPCs(boolean arg0) {
1899
1899
}
1900
1900
}
1901
1901
1902
+ private static void renderPlayers (int arg0 , boolean arg1 ) {
1903
+ if (Player .localPlayer .worldX >> 7 == MovedStatics .destinationX && Player .localPlayer .worldY >> 7 == Class55 .destinationY ) {
1904
+ MovedStatics .destinationX = 0 ;
1905
+
1906
+ DebugTools .walkpathX = null ;
1907
+ DebugTools .walkpathY = null ;
1908
+ }
1909
+ int i = Player .localPlayerCount ;
1910
+ if (arg1 )
1911
+ i = 1 ;
1912
+ int i_0_ = arg0 ;
1913
+ for (/**/ ; i > i_0_ ; i_0_ ++) {
1914
+ int i_1_ ;
1915
+ Player player ;
1916
+ if (arg1 ) {
1917
+ i_1_ = 33538048 ;
1918
+ player = Player .localPlayer ;
1919
+ } else {
1920
+ i_1_ = Player .trackedPlayerIndices [i_0_ ] << 14 ;
1921
+ player = Player .trackedPlayers [Player .trackedPlayerIndices [i_0_ ]];
1922
+ }
1923
+ if (player != null && player .isInitialized ()) {
1924
+ player .aBoolean3287 = false ;
1925
+ int tileX = player .worldX >> 7 ;
1926
+ int tileY = player .worldY >> 7 ;
1927
+ if ((VertexNormal .lowMemory && Player .localPlayerCount > 50 || Player .localPlayerCount > 200 ) && !arg1 && player .anInt3077 == player .idleAnimation )
1928
+ player .aBoolean3287 = true ;
1929
+ if (tileX >= 0 && tileX < 104 && tileY >= 0 && tileY < 104 ) {
1930
+ if (player .playerModel != null && player .anInt3283 <= MovedStatics .pulseCycle && MovedStatics .pulseCycle < player .anInt3274 ) {
1931
+ player .aBoolean3287 = false ;
1932
+ player .anInt3276 = Scene .getFloorDrawHeight (Player .worldLevel , player .worldX , player .worldY );
1933
+ Npc .currentScene .method112 (Player .worldLevel , player .worldX , player .worldY , player .anInt3276 , 60 , player , player .anInt3118 , i_1_ , player .anInt3258 , player .anInt3281 , player .anInt3262 , player .anInt3289 );
1934
+ } else {
1935
+ if ((0x7f & player .worldX ) == 64 && (player .worldY & 0x7f ) == 64 ) {
1936
+ if (MovedStatics .anInt2628 == MovedStatics .anIntArrayArray1435 [tileX ][tileY ])
1937
+ continue ;
1938
+ MovedStatics .anIntArrayArray1435 [tileX ][tileY ] = MovedStatics .anInt2628 ;
1939
+ }
1940
+ player .anInt3276 = Scene .getFloorDrawHeight (Player .worldLevel , player .worldX , player .worldY );
1941
+ Npc .currentScene .method134 (Player .worldLevel , player .worldX , player .worldY , player .anInt3276 , 60 , player , player .anInt3118 , i_1_ , player .aBoolean3105 );
1942
+ }
1943
+ }
1944
+ }
1945
+ }
1946
+
1947
+ }
1948
+
1902
1949
public void method35 (int arg1 ) {
1903
1950
if (currentPort != gameServerPort )
1904
1951
currentPort = gameServerPort ;
0 commit comments