Revision efa682e8
Added by Leszek Koltunski almost 5 years ago
src/main/java/org/distorted/uistate/RubikStateSolving.java | ||
---|---|---|
185 | 185 |
size = RubikObjectList.getSize(object,Integer.parseInt(sizeStr)); |
186 | 186 |
time = Integer.parseInt(timeStr); |
187 | 187 |
|
188 |
//android.util.Log.e("solving", "parsed: nameStr="+nameStr+" sizeStr="+sizeStr+" timeStr="+timeStr); |
|
189 |
mRecords[object][size][scramble] = time; |
|
188 |
if( object>=0 && object< NUM_OBJECTS && size>=0 && size<MAX_SIZE ) |
|
189 |
{ |
|
190 |
mRecords[object][size][scramble] = time; |
|
191 |
|
|
192 |
if( time<Integer.MAX_VALUE ) |
|
193 |
{ |
|
194 |
android.util.Log.e("solv", "Set record for: object="+object+" size="+size+" scramble="+scramble+" time: "+time); |
|
195 |
} |
|
196 |
} |
|
197 |
else |
|
198 |
{ |
|
199 |
android.util.Log.e("solv", "error: object="+object+" size="+size); |
|
200 |
} |
|
190 | 201 |
} |
191 | 202 |
} |
192 | 203 |
} |
... | ... | |
242 | 253 |
int scramble= play.getPicker(); |
243 | 254 |
int maxsize = RubikObjectList.getObject(object).getSizes().length; |
244 | 255 |
|
245 |
if( object>=0 && object< NUM_OBJECTS && size>=0 && size<maxsize && scramble>=1 && scramble<=MAX_SCRAMBLE )
|
|
256 |
if( object>=0 && object<NUM_OBJECTS && size>=0 && size<maxsize && scramble>=1 && scramble<=MAX_SCRAMBLE ) |
|
246 | 257 |
{ |
247 | 258 |
if( mRecords[object][size][scramble-1]> timeTaken ) |
248 | 259 |
{ |
Also available in: Unified diff
Minor.