Project

General

Profile

« Previous | Next » 

Revision 0c7a8a11

Added by Leszek Koltunski 22 days ago

fix scrambling MovesController

View differences:

src/main/java/org/distorted/helpers/MovesController.java
157 157
        if( m>0 ) moves.append(' ');
158 158
        moves.append(move.getAxis());
159 159
        moves.append(' ');
160
        moves.append(move.getRow());
160
        moves.append(move.getRowBitmap());
161 161
        moves.append(' ');
162 162
        moves.append(move.getAngle());
163 163
        }
......
180 180
        for(int m=0; m<length; m++)
181 181
          {
182 182
          String axis  = tokens[3*m  ];
183
          String row   = tokens[3*m+1];
183
          String rowB  = tokens[3*m+1];
184 184
          String angle = tokens[3*m+2];
185 185

  
186 186
          try
187 187
            {
188 188
            int axisI = Integer.parseInt(axis);
189
            int rowI  = Integer.parseInt(row);
189
            int rowBI = Integer.parseInt(rowB);
190 190
            int angleI= Integer.parseInt(angle);
191 191

  
192
            addMove(act,axisI,rowI,angleI);
192
            addMove(act,axisI,rowBI,angleI);
193 193
            }
194 194
          catch(NumberFormatException ex)
195 195
            {

Also available in: Unified diff