Revision d83c7ea4
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/objectlib/main/TwistyObject.java | ||
---|---|---|
904 | 904 |
axisIndex= move[0]; |
905 | 905 |
banBitmap= computeBandagedBitmap( move[1],axisIndex); |
906 | 906 |
row = computeRowFromBitmap( move[1] ); |
907 |
|
|
908 |
// Firebase says that it crashes here in case of the Pyraminx Diamond. No idea why. |
|
909 |
if( axisIndex >= mBasicAngles.length || row >= mBasicAngles[axisIndex].length ) |
|
910 |
{ |
|
911 |
String problem = getShortName()+" "+axisIndex+" "+mBasicAngles.length+" "+row+" "+mBasicAngles[0].length; |
|
912 |
mInterface.reportProblem(problem,true); |
|
913 |
axisIndex=0; |
|
914 |
row = 0; |
|
915 |
move[2] = 0; |
|
916 |
} |
|
917 |
|
|
907 | 918 |
basic = mBasicAngles[axisIndex][row]; |
908 | 919 |
angle = move[2]*(360/basic); // this assumes that all layers from |
909 | 920 |
// the bitmap have the same BasicAngle. |
Also available in: Unified diff
Debugging.