Project

General

Profile

« Previous | Next » 

Revision 23be3096

Added by Leszek Koltunski over 3 years ago

Bugfix

View differences:

src/main/java/org/distorted/objects/TwistyObject.java
928 928
  public int computeNearestAngle(int axis, float angle, float speed)
929 929
    {
930 930
    int[] basicArray = getBasicAngle();
931
    int basicAngle   = basicArray[axis>basicArray.length ? 0 : axis];
931
    int basicAngle   = basicArray[axis>=basicArray.length ? 0 : axis];
932 932
    int nearestAngle = 360/basicAngle;
933 933

  
934 934
    int tmp = (int)((angle+nearestAngle/2)/nearestAngle);

Also available in: Unified diff