Revision 1ba56d95
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/screens/RubikScreenPlay.java | ||
---|---|---|
354 | 354 |
@Override |
355 | 355 |
public void onClick(View v) |
356 | 356 |
{ |
357 |
int currObject = RubikObjectList.getCurrObject(); |
|
358 |
RubikObject object = RubikObjectList.getObject(currObject); |
|
359 |
int numScrambles = object==null ? 0 : 2*object.getNumScramble(); |
|
360 | 357 |
mShouldReactToEndOfScrambling = false; |
361 |
act.getControl().fastScrambleObject(numScrambles);
|
|
358 |
act.getControl().fastScrambleObject(RubikObject.FAST_SCRAMBLES);
|
|
362 | 359 |
} |
363 | 360 |
}); |
364 | 361 |
} |
Also available in: Unified diff
Simplification for the new way of storing records.