Revision 2dfe43d3
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/scores/RubikScoresDownloader.java | ||
---|---|---|
165 | 165 |
|
166 | 166 |
if( object>=0 && object<mTotal ) |
167 | 167 |
{ |
168 |
int level = Integer.parseInt( row.substring(s1+1,s2) );
|
|
168 |
int scramble = Integer.parseInt( row.substring(s1+1,s2) );
|
|
169 | 169 |
String name = row.substring(s2+1, s3); |
170 | 170 |
int time = Integer.parseInt( row.substring(s3+1,s4) ); |
171 | 171 |
String country = row.substring(s4+1, s5); |
172 | 172 |
|
173 |
if(level>0 && level<=MAX_SCRAMBLE)
|
|
173 |
if(scramble>=0 && scramble<MAX_SCRAMBLE)
|
|
174 | 174 |
{ |
175 |
int p = mPlaces[object][level];
|
|
176 |
mPlaces[object][level]++;
|
|
175 |
int p = mPlaces[object][scramble];
|
|
176 |
mPlaces[object][scramble]++;
|
|
177 | 177 |
|
178 |
mCountry[object][level-1][p] = country;
|
|
179 |
mName [object][level-1][p] = name;
|
|
180 |
mTime [object][level-1][p] = ((float)(time/100))/10.0f;
|
|
178 |
mCountry[object][scramble][p] = country;
|
|
179 |
mName [object][scramble][p] = name;
|
|
180 |
mTime [object][scramble][p] = ((float)(time/100))/10.0f;
|
|
181 | 181 |
} |
182 | 182 |
} |
183 | 183 |
} |
Also available in: Unified diff
Bugfix for downloading High Scores.