Revision a91fb62f
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/network/RubikNetwork.java | ||
---|---|---|
420 | 420 |
String reclist = scores.getRecordList("&o=","&l=","&t="); |
421 | 421 |
String country = scores.getCountry(); |
422 | 422 |
long epoch = System.currentTimeMillis(); |
423 |
String salt = "cuboid";
|
|
423 |
String salt = "cubold";
|
|
424 | 424 |
|
425 | 425 |
String url1="https://distorted.org/magic/cgi-bin/submit.cgi"; |
426 | 426 |
String url2 = "n="+name+"&v="+veri+"&r="+numRuns+"&p="+numPlay+"&i="+deviceID+"&e="+mVersion+"d"; |
427 | 427 |
url2 += reclist+"&c="+country+"&f="+epoch+"&oo="+ ObjectList.getObjectList(); |
428 | 428 |
url2 += "&min=0&max="+MAX_LEVEL+"&lo="+MAX_PLACES; |
429 |
String hash = computeHash( url2, salt.getBytes() ); |
|
429 |
String hash = computeHash( url2+"d", salt.getBytes() );
|
|
430 | 430 |
|
431 | 431 |
return url1 + "?" + url2 + "&h=" + hash; |
432 | 432 |
} |
src/main/java/org/distorted/objects/TwistyDino4.java | ||
---|---|---|
139 | 139 |
for(int c=0; c<numCenters; c++) |
140 | 140 |
{ |
141 | 141 |
int index = mScramble[CUBITS[c].mQuatIndex][c]; |
142 |
mColors[c] = mFaceMap[index];
|
|
142 |
mColors[index] = mFaceMap[c];
|
|
143 | 143 |
} |
144 | 144 |
|
145 | 145 |
if( mColors[0]==mColors[3] && mColors[0]==mColors[7] && |
Also available in: Unified diff
Fix (again) the solved state detection in Dino4.