Project

General

Profile

« Previous | Next » 

Revision e17d01c2

Added by Leszek Koltunski 12 months ago

Fix the 'layer bitmaps in algorithms' feature.

View differences:

src/main/java/org/distorted/objectlib/json/JsonReader.java
534 534
      JSONArray jsonAlg = jsonAlgorithms.getJSONArray(i);
535 535
      int numEntries = jsonAlg.length();
536 536
      mAlgorithms[i] = new int[numEntries];
537
      for(int j=0; j<numEntries; j++) mAlgorithms[i][j] = (1<<jsonAlg.getInt(j));
537
      for(int j=0; j<numEntries; j++)
538
        {
539
        int entry = jsonAlg.getInt(j);
540
        mAlgorithms[i][j] = ( (j%3)==1 ? (1<<entry) : entry );
541
        }
538 542
      }
539 543

  
540 544
    JSONArray jsonEdges = object.getJSONArray("edges");

Also available in: Unified diff