@@ -95,7 +95,7 @@ public class Game {
95
95
public static int modewhere = 0 ;
96
96
public static long lastClickTime = 0L ;
97
97
public static int mouseInvInterfaceIndex = 0 ;
98
- public static int anInt509 = 0 ;
98
+ public static int updateServerConnectAttemptCounter = 0 ;
99
99
public static boolean aBoolean519 = true ;
100
100
public static MouseCapturer mouseCapturer ;
101
101
public static int anInt2591 = 0 ;
@@ -115,7 +115,7 @@ public class Game {
115
115
public static int connectionStage = 0 ;
116
116
public static int anInt292 = 0 ;
117
117
public static boolean accountFlagged = false ;
118
- public static long aLong1841 ;
118
+ public static long updateServerHandshakeSentAtMs ;
119
119
public static int clientVersion ;
120
120
public static int playerRights = 0 ;
121
121
public static Timer gameTimer ;
@@ -2142,16 +2142,16 @@ public void method35(int arg1) {
2142
2142
if (anInt292 >= 4 ) {
2143
2143
if (gameStatusCode <= 5 ) {
2144
2144
this .openErrorPage ("js5connect" );
2145
- anInt509 = 3000 ;
2145
+ updateServerConnectAttemptCounter = 3000 ;
2146
2146
} else
2147
- anInt509 = 3000 ;
2147
+ updateServerConnectAttemptCounter = 3000 ;
2148
2148
}
2149
2149
} else {
2150
2150
this .openErrorPage ("js5connect_outofdate" );
2151
2151
gameStatusCode = 1000 ;
2152
2152
}
2153
2153
} else if (gameStatusCode > 5 )
2154
- anInt509 = 3000 ;
2154
+ updateServerConnectAttemptCounter = 3000 ;
2155
2155
else {
2156
2156
this .openErrorPage ("js5connect_full" );
2157
2157
gameStatusCode = 1000 ;
@@ -2250,14 +2250,14 @@ public void connectUpdateServer() {
2250
2250
if (updateServer .ioExceptions >= 4 ) {
2251
2251
if (gameStatusCode > 5 ) {
2252
2252
updateServer .ioExceptions = 3 ;
2253
- anInt509 = 3000 ;
2253
+ updateServerConnectAttemptCounter = 3000 ;
2254
2254
} else {
2255
2255
this .openErrorPage ("js5io" );
2256
2256
gameStatusCode = 1000 ;
2257
2257
return ;
2258
2258
}
2259
2259
}
2260
- if (anInt509 -- <= 0 ) {
2260
+ if (updateServerConnectAttemptCounter -- <= 0 ) {
2261
2261
do {
2262
2262
try {
2263
2263
if (connectionStage == 0 ) {
@@ -2279,11 +2279,11 @@ public void connectUpdateServer() {
2279
2279
buffer .putIntBE (435 ); // Cache revision
2280
2280
updateServerSocket .sendDataFromBuffer (5 , 0 , buffer .buffer );
2281
2281
connectionStage ++;
2282
- aLong1841 = System .currentTimeMillis ();
2282
+ updateServerHandshakeSentAtMs = System .currentTimeMillis ();
2283
2283
}
2284
2284
if (connectionStage == 3 ) {
2285
2285
if (gameStatusCode > 5 && updateServerSocket .inputStreamAvailable () <= 0 ) {
2286
- if (System .currentTimeMillis () + - aLong1841 > 30000L ) {
2286
+ if (System .currentTimeMillis () - updateServerHandshakeSentAtMs > 30000L ) {
2287
2287
method35 (-2 );
2288
2288
break ;
2289
2289
}
0 commit comments