Project

General

Profile

« Previous | Next » 

Revision da1e61aa

Added by Leszek Koltunski over 3 years ago

Make the BandagedPlay use FastScramble. (static 500 times)

View differences:

src/main/java/org/distorted/objectlib/effects/fastscramble/FastScrambleEffect.java
49 49
      }
50 50
    }
51 51

  
52
  private static final int NUM_SCRAMBLES = 100;
53 52
  private static final int NUM_EFFECTS = Type.values().length;
54 53
  private static final int NUM_PHASES  = 2;
55 54
  private static final int FAKE_EFFECT_ID = -5;
......
234 233
    mObjectNode   = pre.getObjectNode();
235 234
    mPre          = pre;
236 235
    mDuration     = duration;
237
    mNumScrambles = NUM_SCRAMBLES;
236
    mNumScrambles = pre.getNumScrambles();
238 237

  
239 238
    Thread thread = new Thread()
240 239
      {
src/main/java/org/distorted/objectlib/scrambling/ScrambleStateBandagedCuboid.java
336 336
      if( moveIndex<size )
337 337
        {
338 338
        scramble[0] = axis;
339
        scramble[1] = moveIndex % mSize[axis];
339
        scramble[1] = 1<<(moveIndex % mSize[axis]);
340 340

  
341 341
        if( mTurns[axis]==3 )
342 342
          {

Also available in: Unified diff